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."
Compute CDF from a PDF Function
This question evaluates a candidate's skills in numerical integration, applied numerical methods, and probability/statistics by requiring construction...
Train with imbalanced sampled data
You are training a binary classifier on a very large dataset where the positive class is rare. Because the full dataset is too large to train on direc...
Compare performance of FB vs IG Stories
This question evaluates a data scientist's competency in experimental design, causal inference, attribution modeling, metric selection, and decision-o...
Make Cache Fetch Thread-Safe and Single-Flight
Make Cache Fetch Thread-Safe and Single-Flight A TTL cache adds fetch(key, loader, ttl): return a valid cached value immediately; otherwise call the l...
Compute this-year spend share of last-year whales
This question evaluates proficiency in data manipulation and analytics engineering, specifically SQL and Python skills for aggregations, joins, calend...
Determine Whether Courses Can Be Completed
You are given an integer numCourses, representing courses labeled from 0 to numCourses - 1, and a list prerequisites. Each prerequisite is a pair [cou...
Find a valid dependency order
You are given n tasks labeled from 0 to n - 1 and a list of dependency pairs dependencies, where each pair [a, b] means task b must be completed befor...
Handle a payment-service incident with resource spikes
Handle a payment-service incident with resource spikes Incident Response and Resilience: Payment Integration Service Outage Context You own an interna...
Compute expected counters after color elimination
Compute expected counters after color elimination Problem You have a bag with 30 counters: 10 red, 10 yellow, and 10 blue. You draw counters uniformly...
Demonstrate culture fit and deep dives
Demonstrate culture fit and deep dives Behavioral & Leadership Onsite: Culture Fit and Project Deep Dive (Software Engineer) Context You will be asses...
Trace and reduce redundant curl requests
Instrument and Optimize a Client's HTTP Requests for a Workflow You are pair-programming with the interviewer. You have a client (a script or applicat...
Describe your most impactful project
Describe your most impactful project Past Project Deep Dive (Behavioral & Leadership) Provide a structured narrative of a project you led or significa...
Maximize profit from non-overlapping jobs
You are given up to N = 200,000 jobs; each job i has a start time s_i, end time e_i (s_i < e_i), and reward w_i. Select a subset of non-overlapping jo...
Explain C++ default constructor generation rules
You are given a C++ class type T. 1. When will the compiler implicitly declare a default constructor for T? 2. When will the implicitly-declared defau...
Process document edit events
Implement a line-based document editor. You are given: - an initial document represented as an array of strings, where each string is one line - a lis...
Design a house-price prediction model
This question evaluates machine learning and data science competencies including regression model design, feature engineering, data-splitting and leak...
Design a Retrieval-Augmented Generation (RAG) system
This question evaluates a candidate's ability to design production-grade Retrieval-Augmented Generation systems, testing competencies in information r...
Find a secret word via match feedback
Word Guessing Game (Mastermind-style) You are given a list of unique candidate words wordlist. All words have the same length L and contain only lower...
Implement an in-memory SQL-like table
Problem Implement a simple in-memory database for one table. All values are strings. Each row is identified by a rowKey (string). Each row contains co...
Implement credit ledger with out-of-order timestamps
Problem You are implementing a GPU credit ledger that supports adding credits, charging credits, and querying balances. Requests can arrive in any tim...