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."
Describe failure impact and resolve cross-functional conflict
You are in a behavioral interview. Answer the following prompts using a structured method (e.g., STAR or CARL). Provide specific details, metrics wher...
Implement K-means and handle train-inference mismatch
Part A — K-means (implementation + concepts) You are given a dataset \(X \in \mathbb{R}^{n \times d}\) and an integer \(k\). 1. Explain K-means: what ...
How would you prevent wrong items in deliveries?
Behavioral / Product-Process Scenario You work on a food delivery platform. Customers sometimes receive the wrong items (restaurant packed incorrectly...
Explain Core ML Concepts
This question evaluates understanding of core supervised learning concepts—comparing linear and logistic regression, interpreting the bias–variance tr...
Explain CPU-Bound vs I/O-Bound Work
Define CPU-bound and I/O-bound workloads. Then compare how multithreading, asynchronous I/O, and multiprocessing behave for each type of workload, esp...
Design Spring Boot for high availability and background work
This question evaluates a candidate's competency in designing highly available, load-balanced Spring Boot applications and architecting resilient back...
Handle value conflicts and disagreeing with leadership
Behavioral / Values prompts Answer the following with specific examples (use the STAR method): 1. Have you ever made a decision that was “politically ...
Use confusion matrix to choose model metric
This question evaluates understanding of confusion matrix components, mapping Type I/Type II errors to false positives/negatives, selection and interp...
Infer the Smallest Valid Character Order from Sorted Password Hints
Infer the Smallest Valid Character Order from Sorted Password Hints You are given password hints already sorted according to an unknown alphabet. Infe...
Content Safety Filter
This coding question tests string parsing, tokenization logic, and pattern-matching algorithm design in a practical content moderation context. It eva...
Fix race condition in concurrent deposit
Concurrent bank account debugging (thread safety) You are given a simple BankAccount object that is used concurrently from multiple threads. Two depos...
Explain Transformer Encoder and Decoder Behavior
Answer the following Transformer fundamentals questions in a machine learning interview: 1. What are the main differences between a Transformer encode...
Explain deadlock cases and how to prevent them
You are asked in an interview to discuss deadlocks in concurrent programming. 1) What is a deadlock? 2) What conditions must hold for a deadlock to be...
Describe your most memorable bug and fix
Tell me about the most memorable/impactful bug you encountered in a project. Include: - What the system/project was and your role - How the bug manife...
Compute precision/recall from a flaky top-k API
You have 10 image files. Each file has a ground-truth label indicating whether it contains a dog. You can call an API like searchDogs(k) which is inte...
Compute the Diameter of an Undirected Tree
Compute the Diameter of an Undirected Tree You are given an undirected tree with nodes numbered from 0 through n - 1. The diameter is the number of ed...
Describe a Trade-off Design Change
Tell me about a time when you changed a system design because of an important trade-off. Explain the original design, the competing goals or constrain...
Design RSS Feed and Temporary Mail
This question evaluates skills in large-scale system design, covering API design, ingestion and normalization pipelines, caching and freshness trade-o...
Design an inventory management system
Design an inventory management system for an e-commerce business. The system must support: - Updating stock when inventory is received, adjusted, or s...
Design Personalized Product Feeds
Design an ML system for personalized product feeds in an e-commerce application. For each user request, the system should return a ranked feed of prod...