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."
Implement anagram check and stable deduplication
Part A — Anagram checker: Write a function is_anagram(a: str, b: str, locale: str = 'en') -> bool that returns True iff a and b are anagrams under the...
Design and analyze end-to-end A/B test
This question evaluates experimentation design and analysis competencies for A/B testing, including metric selection, statistical interpretation, inte...
Model schema and query new-market readiness
Assume today is 2025-09-01. You are given (or can propose) a minimal schema to assess new-market readiness and early performance. Use the schema below...
Compute age-band spend and YoY in Georgia
Using ANSI SQL only, answer the three parts below on the following schema and samples. Assume dates are YYYY-MM-DD, paid_amt can be negative (adjustme...
Use regression vs cohorts for A/B estimation
This question evaluates a data scientist's competency in regression-adjusted causal estimation, specifying interaction terms and assessing heterogeneo...
Solve stock, BFS path, and merge intervals
Solve three coding problems; justify complexity and corner cases. A) Best Time to Buy/Sell Stock (one transaction): Given prices[0..n-1] (integers), r...
Choose between A/B and switchback for spillovers
This question evaluates experimental-design and causal-inference competencies, specifically handling interference and spillovers, defining experimenta...
Measure driver experience quantitatively
This question evaluates a data scientist's competencies in designing composite metrics, event-level aggregation, statistical validation, debiasing for...
Model preference without ground truth
This question evaluates a data scientist's competency in uplift modeling, causal inference, experimental design, weak supervision, and bias and shift ...
Determine intersection dimension of two 4D subspaces
This question evaluates linear algebra skills—specifically understanding of subspace dimensions, intersections and sums, and the dimension formula for...
Quantify impact without an A/B test
This question evaluates a data scientist's competency in causal inference, quasi-experimental methods, time-series analysis, identification strategy s...
Write SQL window functions for streaks
Assume today is 2025-09-01. Using standard SQL (e.g., PostgreSQL), answer the following using window functions only (no procedural loops, no correlate...
Decide whether to renew or sell a TV series
This question evaluates a data scientist's skills in financial valuation (NPV and LTV), causal inference and experimental design, sensitivity analysis...
Impute missing values without leakage
Given a DataFrame df with columns: user_id, event_date (datetime), country (categorical), device_type (categorical), age (numeric), income (numeric), ...
Write SQL to localize trading drop contributors
Use the schema and samples below. Unless stated, treat a user as active on a day if they attempted any order (any status). Dates are inclusive. Schema...
Derive paying users over time with churn
This question evaluates the ability to model user conversion and churn with discrete-time recurrence relations, derive closed-form expressions for pay...
Write SQL for DAU and first-purchase conversion
Today is 2025-09-01. Using the schema and sample data below, write a single ANSI-SQL query that returns one row per day for the last 7 days (2025-08-2...
Write SQL for cold-complaint diagnostics with LAG/QUALIFY
Using BigQuery/Snowflake-style SQL (CTEs required; use LAG and QUALIFY), answer the tasks below. Assume 'today' is 2025-09-01. Schema and small sample...
Write SQL to analyze Group Calls adoption
Write SQL (assume PostgreSQL) to analyze Group Calls adoption and cannibalization. Use this schema and sample data. Schema: - users(user_id INT PRIMAR...
Design and Evaluate an Experiment on Surge
This question evaluates experiment design, causal inference, power analysis, and implementation skills relevant to pricing and supply experiments in a...