Meta Machine Learning Engineer interview questions

105 Machine Learning Engineers have shared notes from their Meta interviews, with the questions they were asked in each round. That is 21% of the 490 Meta interview notes on Screna AI.

105 Machine Learning Engineer interview notes

Meta·Machine Learning Engineer·Technical Phone Screen

Jun 2026
Meta MLE technical phone screen focused on a single coding problem with a twist: they wanted two distinct solutions, not just one that works. The problem itself was straightforward but the O(1) space angle is where things got interesting.
  • Implement a calculator that evaluates an arithmetic expression string containing only non-negative integers, '+', '*', and optional whitespace. No parentheses. Standard operator precedence applies (multiplication before addition). Provide both a split-based solution and a single-pass O(1)-space solution, and explain the tradeoffs.

“The split approach clicked fast: split on '+', then for each chunk split on '*' and multiply across, then sum everything.”

View Post

Meta·Machine Learning Engineer·Technical Phone Screen

Jun 2026
Meta MLE interview focused on a pretty meaty ML system design question around feature engineering for the News Feed ranking model. The follow-up about offline vs online metric gaps was where things got interesting and honestly a bit uncomfortable.
  • There's an existing model predicting the probability a user likes a News Feed post. How would you add a new feature capturing whether the user liked posts from a specific author (or a specific post) in the last 6 months? Walk through feature engineering, how you'd serve it at inference time, and how you'd avoid label leakage during training.
  • Once you have that feature, how do you integrate it into the existing model? Should it go in as a raw numeric feature, get embedded, or be constructed as an interaction term with something else? What's the risk to existing features?
  • How would you validate whether this feature actually helps? What offline metrics would you look at, and how would you slice the analysis?
  • Say your offline metrics improve but the online A/B test shows no meaningful gain. What are the possible explanations and how do you debug it?

“This is the kind of question where I started confident and slowly realized I was glossing over the hard parts.”

View Post

Meta·Machine Learning Engineer·Technical Phone Screen

Jun 2026
Meta ML engineer screen that was basically one meaty coding problem: implement linear regression from scratch using the closed-form solution. They let you use AI to look up the gradient derivation if you blanked, which is a weird flex but actually made it more interesting since you still had to verify the result numerically.
  • Given a set of (x, y) points, implement linear regression by hand using the closed-form solution that minimizes mean squared error. Derive the gradient of MSE with respect to the weights, set it to zero, write out the closed-form expression, then implement it in code. You can use AI assistance to derive the gradient if needed, but verify your result numerically against gradient descent on a small synthetic dataset.

“This is the kind of question that sounds easy until you're actually staring at it live.”

View Post

Meta·Machine Learning Engineer·Onsite - Behavioral / Leadership

Jun 2026
Behavioral round at Meta for an MLE role. Just one question but they really wanted the full story, not a quick answer.
  • How do you handle conflicts at work, whether with peers, managers, or cross-functional partners? Walk through your general approach and give a specific recent example including the disagreement, the different perspectives, how you tried to understand the other side, and what the outcome was.

“This one is sneakier than it looks.”

View Post

Meta·Machine Learning Engineer·Onsite - Behavioral / Leadership

Jun 2026
Behavioral round for an MLE role at Meta. Pretty standard stuff, nothing that should've surprised me, but I still fumbled a couple of them by rambling instead of keeping it tight.
  • Tell me about yourself.
  • Describe a time you had a conflict with a teammate and how you handled it.
  • Tell me about a time you failed and what you took away from it.
  • Walk me through a project you led end-to-end.
  • What has been your most impactful contribution at work?

“I always overthink this one and end up giving a mini life story nobody asked for.”

View Post

Meta·Machine Learning Engineer·Hiring Manager Screen

Jun 2026
Meta MLE interview with a hiring manager that was basically a long open-ended research discussion. No coding, no system design in the traditional sense, just one meaty question and a lot of back-and-forth stress testing every idea I threw out.
  • Meta trains coding agents on private repositories. How would you prevent these agents from reproducing code from those private repos in their outputs, similar to a copyright protection problem?

“This one kept going for a long time.”

View Post

Meta·Machine Learning Engineer·Technical Phone Screen

Jun 2026
Meta MLE phone screen, basically one algorithmic problem the whole time. The problem itself wasn't brutal but the expectation to nail the reasoning cleanly under pressure was real.
  • You're given an array of positive weights. Implement a function that randomly picks an index where each index's probability of being selected is proportional to its weight relative to the total sum.

“The key is building a prefix sum array first, then drawing a random float in [0, total) and binary searching for which bucket it lands in.”

View Post

Meta·Machine Learning Engineer·Technical Phone Screen

Jun 2026
Meta ML engineer round with two parts: a metrics design discussion about friend recommendations under data constraints, then a live coding exercise with AI assistance allowed. The AI-assisted format was a bit unusual but actually kind of interesting once I got into it.
  • You have a User class with only an id and a list of current friends. How would you design evaluation metrics for a friend recommendation algorithm, and which of those metrics are actually computable given only those two fields?
  • Implement a mutualFriendsScore function that takes two User objects and returns a score based on mutual friends. Write it in a new file with unit tests, and you may use AI assistance during the implementation.

“This was the part I found genuinely interesting.”

View Post

Meta·Machine Learning Engineer·Technical Phone Screen

Jun 2026
Coding round at Meta for an MLE role, one algorithmic problem that looked straightforward but had a neat greedy insight hiding inside it.
  • Given two reward arrays of length n and an integer k, assign exactly k indices to mouse 1 and the remaining n-k to mouse 2, where each mouse earns the reward value at its assigned indices. Return the maximum total reward.

“My first instinct was some kind of DP and I started going down that path before catching myself.”

View Post

Meta·Machine Learning Engineer·Technical Phone Screen

Jun 2026
Meta MLE interview with a debugging question around card drawing logic. Pretty focused on correctness and edge cases rather than anything fancy.
  • You're given a method that draws three cards from a list representing a table. Debug and fix it so that each card drawn is actually present on the table at the time of drawing.

“Spent the first couple minutes just reading the code carefully before saying anything, which I think was the right call.”

View Post