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 diff-in-diff and pretrend flag
This question evaluates understanding of difference-in-differences estimation, simple pretrend detection, and related data-processing competencies for...
Design an e-commerce price tracking service
Design a backend system for an e-commerce price-tracking service. Users can track products from a large online retailer, view historical prices, and r...
Implement matrix multiplication and fast exponentiation
1) - A n × m - B m × p C = A × Bn × p - - - MOD MOD 2) Exponentiation by Squaring x k MOD - x^k - x^k mod MOD - O(log k) - k = 0x = 0 3) ...
Design a no-repeat top-frequency music player
Design and implement a music player that receives song lists from new users and returns songs to play in frequency order without repeating a song in t...
Maximize total bandwidth of data channel pairs
You are optimizing how information flows through a network of processing nodes. There are n processing nodes. The bandwidth capability of the i-th nod...
Implement a recent-use eviction cache
This question evaluates a candidate's ability to design and implement a fixed-capacity key-value cache with a recent-use eviction policy, emphasizing ...
Compute multi-step Markov probabilities and estimate transitions
This question evaluates understanding of discrete-time Markov chains, computation of multi-step transition probabilities from a one-step transition ma...
Check if a numeric string is divisible by 8
Question You are given a very large non-negative integer represented as a decimal string s (it may be too large to fit in standard 64-bit integer type...
Identify all bad nodes with group tests
You have N nodes. Each node is either good or bad (unknown to you). You can call a function test(S) on a subset of nodes S: - test(S) = True iff all n...
Implement dynamic batching for token decoding
You are given a black-box “simulated language model” interface that can advance many sequences in a batch. Model interface - Tokens are integers. - mo...
Design a time-windowed key-value store
Implement a time-windowed key-value store ("Windowed Map") that receives key/value updates at irregular times and only keeps entries from the most rec...
Analyze duplicating data in linear regression
This question evaluates understanding of linear regression theory and statistical inference, specifically how duplicating observations affects OLS coe...
Solve a Three-Roll Optimal Stopping Game
Solve a Three-Roll Optimal Stopping Game A fair six-sided die may be rolled at most three times. After each of the first two rolls, stop and receive t...
Price a Sequential Four-Box Search Game
Price a Sequential Four-Box Search Game Four boxes contain one \$100 prize. Each opening costs the same fee x; you choose an unopened box and may stop...
Design promo experiment and explain correlation
This question evaluates causal inference, observational data interpretation, and randomized experiment design skills in a two-sided marketplace contex...
Compute square root to 1 decimal
Problem Given a non-negative real number x, implement a function sqrt1dp(x) that returns \(\sqrt{x}\) rounded (or truncated—clarify with interviewer) ...
Write SQL for character safety and engagement metrics
You are working with a conversational product that has users, AI characters, and conversations. Write SQL queries for each of the tasks below. Assume ...
Compute optimal matrix multiplication order
Given an array dims[0..n] where matrix i has dimensions dims[i-1] × dims[i] (for i = 1..n), compute the minimum number of scalar multiplications neede...
Solve and optimize menu combo DP
Given up to N different menu items, each with a unit price, and a list of combo offers where each offer specifies quantities for some items and a tota...
Compute minimum resources for overlapping intervals
You are given n tasks as half-open time intervals [start, end) on a single day. Determine the minimum number of identical servers needed so that no tw...