Machine Learning Engineer + Data Scientist + Software Engineer Interview Questions
Practice the exact questions companies are asking right now.

"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."
Find path in implicit Fibonacci tree
You are given a special family of binary trees called Fibonacci trees. The k‑th order Fibonacci tree T(k) is defined recursively: - T(1) is a single n...
Design lexicographic range query word store
Design a storage/data structure for a set of strings that supports lexicographic range queries. You are given a collection of words (strings), stored ...
Handle imbalance, sampling, and overfitting
Machine Learning Fundamentals: Imbalance, Sampling, Overfitting, and Regularization You are asked several machine learning fundamentals questions in a...
Explain L1 vs L2 and ridge vs lasso
Explain the differences between: 1. L1 vs L2 regularization (how they change the objective, geometry/intuitions, and typical effects on learned parame...
Evaluate AI-assisted ad creation
Meta is considering launching an AI-assisted ad creation feature for advertisers. The feature helps advertisers generate ad copy and/or creatives insi...
Solve Magic Dictionary and unknown traversal
Solve Magic Dictionary and unknown traversal LeetCode 676. Implement Magic Dictionary Determine and implement traversal/encoding that outputs nodes as...
Highlight Background and Impactful Projects in Self-Introduction
Highlight Background and Impactful Projects in Self-Introduction Behavioral Prompt: Self-Introduction (Technical Phone Screen) Context You are at the ...
Verify Machine-Learning Fundamentals for E-commerce Recommendation Platform
Verify Machine-Learning Fundamentals for E-commerce Recommendation Platform Rapid ML Fundamentals Check — Recommender Systems Context You are intervie...
Design Metrics for Content Moderation and Chatbot Evaluation
Design Metrics for Content Moderation and Chatbot Evaluation Scenario Trust & Safety data science: You are asked to design metrics for two situations:...
Fit Linear Regression: Analyze Economic Impact of Coefficients
Fit Linear Regression: Analyze Economic Impact of Coefficients Scenario You are given a tabular financial dataset df where the column target is the de...
Differentiate Overfitting and Underfitting in Machine Learning
Differentiate Overfitting and Underfitting in Machine Learning ML/DL Fundamentals for a Recommendation Engine Context You are preparing for a take-hom...
Analyze Python Functions: Improve Readability and Efficiency
Analyze Python Functions: Improve Readability and Efficiency Scenario Zoom interview code-review segment: interviewer shares three short Python functi...
Highlight Key Projects and Their Business Impact
Highlight Key Projects and Their Business Impact Behavioral: Self‑Introduction and Project Impact (Data Scientist Phone Screen) Context You are interv...
Assess Amazon Leadership Principles in Behavioral Interviews
Assess Amazon Leadership Principles in Behavioral Interviews Scenario Amazon Data Scientist (often L5) onsite — the Leadership Principles (LP) behavio...
Explain Resolving a Complex Technical Challenge Successfully
Explain Resolving a Complex Technical Challenge Successfully Behavioral: Complex Technical Problem You Solved (Data Scientist – Onsite) Prompt Describ...
Describe contributions to production code
In a software engineering interview, the interviewer asks: > Have you ever contributed to any production code? How should you respond to highlight you...
Explain handling a tight project deadline
In a behavioral interview for a software engineering or technical role, you are asked: > Describe a time you had to work under a very tight deadline. ...
Implement run-length encoding and decoding
You are given a string consisting of lowercase English letters. You need to implement run-length encoding (RLE) and its corresponding decoding. 1. Enc...
Convert amounts between multiple currencies
You are given a set of direct currency exchange rates and a list of queries. Each exchange rate gives you how to convert from one currency to another....
Implement simplified Excel with SET/GET/SUM
Implement a simplified in-memory spreadsheet that supports three operations: SET, GET, and SUM, similar to basic Excel functionality. Assumptions and ...