Practice/Netflix/Spam Email Detection
CodingMust
Given a large corpus of email correspondence history, design and implement a system to detect spam emails. The problem is open-ended — you need to discuss what signals indicate an email is spam, how to classify emails based on those signals, and how to measure the accuracy of your detection system.
This is an open-ended problem solving question. You are expected to clarify the problem, propose classification criteria, discuss accuracy metrics (precision, recall, F1 score, false positive rate), and write class-level code for the detection system. Interviewers care about how you break down an ambiguous problem, the trade-offs between catching more spam vs. flagging legitimate emails, and your ability to translate ideas into code.