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."
One of the most comprehensive LinkedIn DS Product Cases!
You are a Data Scientist working on LinkedIn's profile experience. Define, diagnose, and improve profile completion. Answer these questions: 1. How wo...
Design Rideshare Marketplace Causal Analyses
You are a data scientist at a ride-hailing marketplace. Answer the following case prompts as if you were advising product, operations, and marketplace...
Build a validated add-sub calculator
Given a string expression, write a function that validates and evaluates it. The expression represents arithmetic using only non-negative integers and...
Design a thread-safe high-QPS rate limiter
Question You are building a backend service that must enforce API rate limits. Design and (at a high level) implement a rate limiter, then work throug...
Generate uniform 0–6 from biased coin
You are given a function: - int getRandom01Biased() returns 0 with probability p and 1 with probability 1-p, where p is unknown and may be any value i...
Simulate robot moves on a grid
You are given an m x n grid and a robot that starts at position (r, c) (0-indexed). You are also given a string commands consisting of characters 'U',...
How would you measure and experiment on harmful content?
This question evaluates a data scientist's competency in measuring and experimenting on harmful user-generated content, focusing on severity quantific...
Compute Plant Infection Stabilization
This question evaluates a candidate's ability to model and simulate discrete-time state transitions on grids, reason about propagation dynamics and ev...
Remove minimum invalid mixed brackets
Given a string s containing letters and bracket characters from the set (), [], {}, remove the minimum number of bracket characters so that the result...
Connect next pointers for each tree level
You are given the root of a binary tree where each node has fields left, right, and next (initially null). For every node, set its next pointer to the...
Solve common data-structure and puzzle problems
Solve common data-structure and puzzle problems Solve the following independent problems (language of your choice; assume typical 32/64-bit constraint...
Detect bots using comment distribution patterns
This question evaluates a candidate's competency in behavioral analytics, feature engineering, anomaly and bot detection, statistical validation, and ...
Investigate why an advertiser’s spend decreased
This question evaluates a Data Scientist's competency in analytics and experimentation—specifically root-cause analysis of ad spend declines, attribut...
Count calls in recursive function evaluation
Consider the following recursive function in C-like pseudocode: `c int x(int n) { if (n <= 3) return 1; else return x(n - 2) + x(n - 4) + 1; }...
Solve Cache, Window, and Heap Problems
You may be asked to solve multiple algorithmic problems in coding rounds: 1. Frequency-based cache: Implement a cache with get(key) and put(key, value...
How to improve complaint resolution
You are given three related tables for a Wayfair-style e-commerce customer-support dataset. complaints - complaint_id STRING - customer_id STRING - or...
Analyze and mitigate fake advertiser accounts
This question evaluates competency in fraud detection analytics, including operationally defining fake advertiser accounts, designing longitudinal met...
Solve classic coding interview problems
These problems evaluate algorithmic problem-solving skills including dynamic programming and combinatorics for the egg-dropping scenario, array manipu...
Count Similar Photo Groups
You are given n photos labeled 0 to n - 1 and an n x n binary matrix isSimilar. - isSimilar[i][j] = 1 means photo i and photo j are directly similar. ...
Implement greedy decoding and beam search
You are given access to an auto-regressive language model that can score the next token based on a prefix. Assume: - next_logprobs(prefix_tokens) -> M...