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 tree depth and meeting rooms
Solve both coding problems. Problem 1: Maximum depth of a binary tree Given the root of a binary tree, return its maximum depth. The maximum depth is ...
Diagnose overfitting from error curves
You are evaluating a supervised machine learning model. You are shown a plot where the x-axis is training epoch or model complexity and the y-axis is ...
Build a concurrent web crawler
This question evaluates understanding of concurrent programming, synchronization, thread safety, and graph traversal as applied to a multithreaded web...
Count unconnected posts and reactions
You are analyzing a newly launched feed feature intended to improve engagement by showing more unconnected content. Assume the following tables: - pos...
Solve delimiter and CSV tasks
This question evaluates skills in string parsing and bracket balancing, CSV/file parsing and joining, computation of derived values, and sorting, emph...
Fetch Public S3 Object Metadata
In Node.js, using AWS SDK for JavaScript v3, write a program that accesses the public S3 bucket coderbytechallengesandbox in region us-east-1 without ...
Count Numbers Inside All Intervals
You are given: 1. An integer array nums. 2. A list of intervals intervals, where each interval is represented as [start, end]. The intervals are not s...
Count numbers with same popcount up to all-ones bound
This question evaluates skill in bit manipulation and combinatorial counting over binary representations in the Coding & Algorithms domain, specifical...
Find all anagram start indices
This question evaluates proficiency in string manipulation, algorithmic efficiency, and pattern detection through character frequency analysis, assess...
Design Harmful Content and OOM Detection
This question evaluates machine learning system-design competencies, including safety-oriented content classification, taxonomy and labeling strategy,...
Implement rotating homepage title selector
This question evaluates understanding of data structures and algorithms for prioritized selection with stateful constraints, focusing on maintaining d...
Support updates and count target-sum pairs
This question evaluates data structures and algorithmic skills for dynamic pair counting, focusing on frequency management, efficient update handling,...
Describe failures, self-reflection, and conflict resolution
Answer the following behavioral prompts with recent examples: 1. Self-reflection / improvement - “In a recent project, where could you have done be...
Construct a circular gift exchange across families
This question evaluates ability to model constrained permutations and apply graph-theoretic and combinatorial reasoning to produce a single circular o...
Determine winner in stack-merging game
This question evaluates understanding of combinatorial game theory, impartial game analysis, state-space encoding, and efficient state-space search te...
Solve common search/parse/graph frequency tasks
This multi-part question evaluates algorithmic problem-solving skills across searching and sorting variants, rotated-array search, nested string decod...
Implement an in-memory database with TTL and backup
In-Memory Database (Levels 1–4: TTL and Backup/Restore) Implement an in-memory database that stores records identified by a string key. Each record co...
Design email ranking and summarization in Outlook
This question evaluates proficiency in designing end-to-end machine learning systems for personalized email ranking and abstractive summarization, enc...
Derive correlation bounds and omitted-variable bias
This question evaluates understanding of multivariate correlation structure and linear regression properties, focusing on feasible ranges and construc...
Validate whether brackets are properly nested
This question evaluates proficiency in sequence validation, paired-token matching, and the use of data structures to manage nested elements within str...