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."
Minimize Fuel Cost Across Cities
Minimize Fuel Cost Across Cities Problem Hackerland has g_nodes cities numbered from 1 through g_nodes and bidirectional roads. Road i connects g_from...
Design a Payment Processing System with Exactly-Once Charging
This question evaluates a candidate's ability to design a payment system that guarantees exactly-once charging under network failures, retries, and du...
Design a Website Monitoring Service
Design a website monitoring service that checks customer websites, detects outages or high latency, and alerts users when their sites fail health chec...
Schedule GPU Pods and Drain a Node
Problem Implement schedule_gpu_nodes(nodes, request_gpus, delete_name). Each node is {name, gpus, running_pods} and each pod is {name, required_gpus}....
Explain Large Memory Allocation, Swap, and C++ Inline Trade-offs
In a low-level C++ interview, explain what happens when a program requests 8 GB of memory on a machine with 4 GB of RAM, and discuss the purpose and d...
Discuss Challenges, Difficult Colleagues, and Multitasking
Discuss Challenges, Difficult Colleagues, and Multitasking Prepare responses to three behavioral questions. Use real examples, keep context concise, a...
Diagnose a One-Day Drop in Successful Deliveries
Prompt On one specific day, the number of successful deliveries in a large metropolitan market drops sharply. The alert is about the count, not the su...
Delete One Character Type to Minimize Unique Segments
Problem Implement min_unique_segments_after_deletion(s) for a nonempty lowercase English string. Choose exactly one character value that appears in s ...
Build a Streaming Markdown Code Fence Parser
Implement a streaming Markdown parser that recognizes inline code spans marked with backticks and fenced code blocks marked with triple backticks. The...
Arrange Match Results in Repeating Win-Draw-Loss Order
Arrange Match Results in Repeating Win-Draw-Loss Order You are given a string containing only W, D, and L. Rearrange all characters into rounds. In ea...
Design Prefix-Aware Deduplication for Homepage Content Rows
Design Prefix-Aware Deduplication for Homepage Content Rows A homepage contains ordered rows of content IDs. Each row has its own ordered candidate li...
Build a Crash-Consistent Single-Server Key-Value Store
Build a Crash-Consistent Single-Server Key-Value Store Implement and explain a key-value store that runs in one server process and persists byte-strin...
Choose Ranking Functions, Customer Value Metrics, and Predictive Models
Choose Ranking Functions, Customer Value Metrics, and Predictive Models A global e-commerce team asks three connected fundamentals: distinguish SQL ra...
Design a Distributed Rate Limiter
This question evaluates a candidate's ability to design distributed systems with globally consistent state across multiple servers. It tests system de...
Design a News Aggregation Service
Design a News Aggregation Service Design a service that ingests articles from many news sources, normalizes and groups related coverage, and lets user...
Design a Scalable Metrics Monitoring System
Design a Scalable Metrics Monitoring System Design a service that accepts application and infrastructure metrics, stores them over time, supports dash...
Plan Eviction and Cleanup for a Production Cache
Plan Eviction and Cleanup for a Production Cache A process-local timed cache is correct for basic puts and gets, but it can still exhaust memory, reta...
Design a File Searcher With Symbolic Links
Design an in-memory file-system searcher. The file-system graph contains directories, regular files, and symbolic links. A query selects regular files...
Implement 1NN with NumPy
This question evaluates implementing a 1-nearest-neighbor classifier with NumPy, testing skills in vectorized numerical computation, distance metrics,...
Merge Overlapping Intervals
Merge Overlapping Intervals Implement merge_intervals(intervals) for a list of closed integer intervals. Each interval is [start, end] with start <= e...