Machine Learning Engineer Interview Questions
Practice 766 real interview questions for Machine Learning Engineer roles. From companies including Meta, Amazon, OpenAI, Snapchat, Google. Covers Coding & Algorithms, Machine Learning, ML System Design, Behavioral & Leadership.

"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."
Solve Four Coding Assessment Tasks
Complete the following four independent coding tasks. 1. Find the day a cumulative visit target is reached You are given an array visits, where visits...
Improve Training With Noisy Annotators
You are given a labeled training dataset as a Pandas DataFrame. Each row contains features, an observed label, and an annotator identifier. The annota...
Design an Extensible Simulation Engine
Design and implement an object-oriented simulation framework for a two-player, turn-based game similar to tic-tac-toe. The system should initialize ga...
Explain and test completion-rate gaps
In a food delivery marketplace, alcohol-related orders have a lower order completion rate than non-alcohol orders. Answer the following: 1. Propose se...
Explain ranking cold-start strategies
You are interviewing for a machine learning engineer role focused on search, recommendations, or ranking. Discuss the following in the context of a la...
Implement Masked Multi-Head Self-Attention
Implement the core self-attention module used inside a Transformer encoder. Given an input tensor X of shape (batch_size, sequence_length, d_model), f...
Implement SFT Sample Packing
Implement a preprocessing function for supervised fine-tuning data for an autoregressive language model. You are given a list of tokenized training sa...
Design Real-Time Collaborative Editing
Extend the text editor to support real-time collaboration among multiple users. Requirements: - Multiple users may edit the same document concurrently...
Implement Layer History and Grid Counting
The coding portion covered two independent tasks. 1. Implement a simplified layer editor for a design tool. The editor maintains an ordered list of la...
Design Place Recommendation System
Design a machine learning system for a maps or local-discovery product that recommends places a user may want to visit. The system should provide pers...
Derive Backpropagation for Matrix-Product Layers
Consider a neural network block whose output is produced by multiplying a sequence of trainable weight matrices before applying the result to an input...
Explain batch inference design
You need to generate predictions for a very large offline dataset, such as all users or all products, once per day using an already trained machine le...
Explain KV cache in Transformer inference
Question In Transformer-based language model inference, what is a key-value (KV) cache? Explain: - What gets cached (tensors, shapes at a high level) ...
Wrap Matching Substrings in Bold Tags
During a machine learning engineer phone screen, the coding task was: You are given a string text and a list of strings patterns. Return a new string ...
Count People Reaching the Boundary
You are given a 1-dimensional line segment with a right boundary at position L. There are N people with initial positions p1, p2, ..., pN, and there i...
Implement a web crawler using a provided API
Web Crawler (BFS) You are implementing a simple web crawler. Given - A starting URL startUrl. - A provided API: - List<String> getUrls(String url) w...
Build a model using only pandas/numpy
You are given a tabular dataset as a pandas DataFrame df with: - Feature columns (numeric and/or categorical) - A target column y (either binary class...
Represent k-means as an MLP
Given fixed centroids q_1, ..., q_k and an input vector x, show how the nearest-centroid assignment step of squared-Euclidean k-means can be implement...
Debug transformer and train classifier
Debug and Fix a Transformer Text Classifier, Then Train and Evaluate It Context You inherit a small codebase for a transformer-based text classifier. ...
Design a Product Search System
Design a product search system for a large e-commerce marketplace. Users enter free-text queries such as wireless headphones, apply filters such as pr...