Meta Machine Learning Engineer Coding & Algorithms Interview Questions
Practice 58 real Coding & Algorithms interview questions for Machine Learning Engineer roles at Meta.

"I got asked a hardcore MCM DP question and I saw it on PracHub as well. Solved that question in 5 minutes. Without PracHub I doubt I could solve it in 5 hours. Though somehow didn't get hired, perhaps I guess I solved it too fast? /s"

"Believe me i'm a student here jn US. Recently interviewed for MSFT. They asked me exact question from PracHub. I saw it the night before and ignored it cause why waste time on random sites. I legit wanna go back and redo this whole thing if I had chance. Not saying will work for everyone but there is certainly some merit to that website. And i'm gonna use it in future prep from now on like lc tagged"

"10 years of experience but never worked at a top company. PracHub's senior-level questions helped me break into FAANG at 35. Age is just a number."

"I was skeptical about the 'real questions' claim, so I put it to the test. I searched for the exact question I got grilled on at my last Meta onsite... and it was right there. Word for word."

"Got a Google recruiter call on Monday, interview on Friday. Crammed PracHub for 4 days. Passed every round. This platform is a miracle worker."

"I've used LC, Glassdoor, and random Discords. Nothing comes close to the accuracy here. The questions are actually current — that's what got me. Felt like I had a cheat sheet during the interview."

"The solution quality is insane. It covers approach, edge cases, time complexity, follow-ups. Nothing else comes close."

"Legit the only resource you need. TC went from 180k -> 350k. Just memorize the top 50 for your target company and you're golden."

"PracHub Premium for one month cost me the price of two coffees a week. It landed me a $280K+ starting offer."

"Literally just signed a $600k offer. I only had 2 weeks to prep, so I focused entirely on the company-tagged lists here. If you're targeting L5+, don't overthink it."

"Coaches and bootcamp prep courses cost around $200-300 but PracHub Premium is actually less than a Netflix subscription. And it landed me a $178K offer."

"I honestly don't know how you guys gather so many real interview questions. It's almost scary. I walked into my Amazon loop and recognized 3 out of 4 problems from your database."

"Discovered PracHub 10 days before my interview. By day 5, I stopped being nervous. By interview day, I was actually excited to show what I knew."

"I recently cleared Uber interviews (strong hire in the design round) and all the questions were present in prachub."
"The search is what sold me. I typed in a really niche DP problem I got asked last year and it actually came up, full breakdown and everything. These guys are clearly updating it constantly."
Simulate Monster Team Battles
This question evaluates a candidate's ability to model stateful simulations and implement deterministic battle mechanics with clean data structures an...
Solve Two String Problems
The interview included two coding questions: 1. Exactly one edit apart Given two strings s and t, determine whether they are exactly one edit apart...
Maximize concatenation length with unique chars
This question evaluates understanding of string manipulation, set-based uniqueness constraints, and combinatorial subset selection for maximizing conc...
Find Maximum Unique-Character Subset
This question evaluates algorithm design and combinatorial optimization skills, specifically the ability to model disjoint-character constraints, hand...
Find target using robot movement API
You control a robot in an unknown 2D grid. The grid layout and boundaries are unknown, and you cannot access the map directly. Some cells are blocked ...
Optimize a Fifteen-Sum Card Strategy
This question evaluates algorithmic problem-solving, debugging, simulation-based testing, and strategy optimization using techniques such as search, m...
Build Friend Recommendations
This question evaluates proficiency with graph data structures, set operations, uniform random sampling, counting mutual connections, and deterministi...
Debug and optimize a card-drawing strategy
This question evaluates debugging and implementation skills, combinatorial search and optimization, and the ability to design and interpret simulation...
Find shortest path in a maze grid
This question evaluates proficiency in graph traversal and shortest-path reasoning on grid-based data structures, testing skills in pathfinding, state...
Find Words Containing Other Words
This question evaluates string-processing skills, knowledge of substring matching techniques and supporting data structures, and the ability to analyz...
Implement Sparse Matrix Operations
This question evaluates proficiency in sparse linear algebra, efficient algorithms, and data-structure design for numerical and machine learning workl...
Solve four OA string/array/matrix/graph tasks
This multi-part prompt evaluates proficiency in core programming competencies: string parsing and character classification, simulation/greedy processi...
Maximize Unique Letters
This question evaluates proficiency in combinatorial optimization, bit manipulation, and state-compression techniques for selecting subsets under uniq...
Solve linked list, tree, and grid problems
Problem A — Find cycle entry in a singly linked list You are given the head of a singly linked list. The list may contain a cycle. - Return the node w...
Deep copy a linked list with random pointers
This question evaluates understanding of linked-list structures, pointer/reference manipulation, deep versus shallow copying, and the ability to analy...
Generate unique permutations with duplicates
Given an array of integers that may contain duplicates, generate all unique permutations. Ensure no duplicate permutations are returned even if some v...
Check diagonal and compute window statistics
Question Given a square matrix, determine whether all elements on its main diagonal are identical. LeetCode 346. Moving Average from Data Stream – des...
Implement weighted random sampling with preprocessing
This question evaluates algorithm design and probabilistic reasoning for weighted random sampling, including data-structure preprocessing, time-space ...
Find longest palindromic substring
This question evaluates knowledge of string algorithms and pattern recognition, focusing on identifying palindromic substrings and reasoning about tim...
Extend a Maze Solver
This question evaluates proficiency in implementing and debugging graph search algorithms and state-space modeling, including correct visited-state ha...