Software Engineer Machine Learning Interview Questions
Practice 42 real Machine Learning interview questions for Software Engineer roles. From companies including Amazon, NVIDIA, OpenAI, Anthropic, Microsoft.

"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."
Debug a GRPO training loop and explain ratios
You are given a simplified implementation of a GRPO (Group Relative Policy Optimization) training step for an RLHF-style policy model. The training is...
Implement and Debug Backprop in NumPy
Two-Layer Neural Network: Backpropagation and Gradient Check (NumPy) You are implementing a fully connected two-layer neural network for multi-class c...
Implement and derive backprop from scratch
Tiny Neural Network From First Principles: Binary Classification Implement and analyze a minimal neural network for binary classification with a singl...
Implement and analyze custom attention
Implement Scaled Dot-Product Attention in PyTorch (from scratch) Context You will implement a numerically stable, vectorized scaled dot-product attent...
When should products use AI?
A product-oriented interview asks you to discuss AI adoption in software products. Explain how you would decide whether a feature should use AI or a t...
Debug a Machine Learning Pipeline
Debugging a Sudden Accuracy Drop in a Deployed ML Pipeline Context You are on-call for a production machine learning service. Monitoring alerts show t...
How to Identify Best Battery Group
You have historical quality data for batteries that were randomly assigned to one of 5 groups. Each battery then goes through 3 different quality test...
Choose models for trading tasks
You are given several modeling options for quantitative trading or pricing work: linear regression, convolutional neural networks, transformers, and r...
Explain overfitting, regularization, and LLM techniques
You’re in an ML interview. Answer the following conceptual questions clearly and concisely, using examples where helpful: 1) Model fit - What is overf...
Implement multi-head self-attention correctly
Implement Multi-Head Self-Attention (from scratch) Context You are given an input tensor X with shape (batch_size, seq_len, d_model). Implement a mult...
Design sequence decoding with greedy and beam search
Design sequence decoding with greedy and beam search Next-Token Decoding: Greedy and Beam Search Context You are given a probabilistic next-token dict...
Design Restart Strategy for Oracle Solver
You have an oracle-style math reasoning solver. On each independent run, the time to produce a correct answer is a random variable T with known distri...
How would you model stock price prediction?
Scenario You are asked to use machine learning to predict stock prices (or more realistically, predict future returns / price direction) for a trading...
How would you evaluate an AI feature?
You’re building an AI-powered feature (e.g., an AI assistant or AI-enhanced search). Interviewers ask: “How do you measure results and compare metrics...
Explain LLM fine-tuning and generative models
ML Fundamentals — LLM & Generative AI Track You are interviewing for an ML-focused engineering role. After a short résumé walkthrough, the interviewer...
Debug a failing ML classifier
Debugging a Churn Prediction Pipeline With Poor Generalization Context You have inherited a binary churn prediction system. The goal is to predict whe...
Implement AUC-ROC, softmax, and logistic regression
You are asked to implement a few core ML building blocks from scratch (no ML libraries such as scikit-learn). You may use basic numeric operations and...
Explain key ML metrics and techniques
You are asked a set of short conceptual machine learning questions. 1. Confusion matrix and metrics For a binary classification problem: - Def...
Find minimum of unknown convex function
You are given access to an unknown univariate convex function \(f(x)\) defined on a closed interval \([L, R]\) on the real line. - You cannot see the ...
Explain normalization, regularization, CTR, imbalance handling
You are interviewing for an applied ML role. Answer the following fundamentals clearly and concretely (you may use equations and practical examples): ...