Interview prep / Meta Ranking & recommendation design
Meta interview practice Candidates report one or two ML system design rounds, usually about ranking and recommendations, next to standard coding rounds.
Each question was reported by a candidate in a public interview write-up, linked on the question. We reword the prompt and write our own answer checkpoints. Reports are candidate accounts, not statements from Meta, and the company may have changed its questions since.
Coding progress comes from your submissions. Use the answer checkpoints below to review your explanations and design decisions.
Target roleAll roles ML Engineer Applied Scientist Data Scientist Question typeAll rounds Coding ML fundamentals System design DifficultyAll difficulties Easy Medium Hard Search questions
2 questions · 55 min suggested practice
Answer checkpoints & follow-up Our checkpoints for a strong answer (not from the report)
Define the goal (visits, saves, or ratings) and how you collect labels for it. Use location, time, and user history as features; generate candidates near the user, then rank them. Cover cold start for new places and users, and evaluate offline and with an online experiment. Follow-up: How do you avoid always recommending the same popular places?
Coding Easy 15 min
Solve a moving-average variation Reported by a candidate · ML Engineer · Phone screen · Mar 2024 · LeetCode Discuss · Meta SWE, ML E4 ↗
The phone screen started with a variation of the moving-average problem. Practice computing a moving average over a stream or array efficiently.
Review Time Series → Answer checkpoints & follow-up Our checkpoints for a strong answer (not from the report)
Keep a running sum and add the new value while you remove the oldest one, so each step is O(1). Say what you return before the window is full. Discuss floating-point drift for long streams. Follow-up: How would you compute a moving median instead?