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."
Solve pair-counting and account-merging problems
Problem A — Count qualifying products You are given two integer arrays A and B, and an integer T. For each element a in A, count how many elements b i...
Count Article Types Viewed
Count Article Types Viewed You are given article view events and article metadata. Table 1: article_views — one row per article view event. | Column |...
Explain Python, Java, and Memory Management
This question evaluates understanding of programming language concepts and runtime behavior—covering typing disciplines, runtime models, performance a...
How would you evaluate emoji reactions launch?
This question evaluates a data scientist's competency in analytics and experimentation, covering metric framework design, A/B testing and quasi-experi...
Design an item category prediction system
This question evaluates a candidate's ability to design end-to-end machine learning systems for multi-class or hierarchical item categorization, encom...
Describe Project and Collaboration Stories
Prepare behavioral interview answers for the following prompts: 1. Tell me about a project you found especially interesting. 2. Describe a story invol...
Answer RAG, Transformer, And Fraud Metric Fundamentals
Prepare for a machine learning interview that asks rapid conceptual questions about retrieval-augmented generation, neural network architectures, and ...
Answer Staff-level leadership scenarios using STAR
Behavioral prompts (Staff/L6) Provide structured answers (e.g., STAR) for scenarios like: 1. Most important technical decision you drove: how you deci...
Design a Recency-Eviction Cache
This question evaluates proficiency with data structures and algorithmic design for implementing a fixed-capacity key-value cache that enforces recenc...
Explain JS threading and useState vs useRef
Answer the following conceptual questions about JavaScript and React: 1. JavaScript and multithreading - How does JavaScript's execution model wo...
Implement a thread-safe periodic job scheduler
Implement a thread-safe periodic job scheduler Problem: Periodic Job Scheduler (Concurrency) Implement a small in-process job scheduler that can run p...
Compare deep learning framework trends
Compare deep learning framework trends This is an open-ended discussion question with two parts: 1. What high-level trends are happening at the deep l...
Discuss complex project and multi-approach example
Discuss complex project and multi-approach example Behavioral Prompt — End-to-End Complex Project and Alternatives (Software Engineer, Onsite) Describ...
Implement an Alternating Tic-Tac-Toe Game
This question evaluates a candidate's ability to implement state management, alternating turn logic, input validation, board representation, game outc...
Write SQL for top categories and highly active users
You are given three tables: 1) impression Event-level table of user impressions. - impression_id BIGINT (PK) - user_id BIGINT (FK → user.user_id) - pi...
Optimize flight and cargo bookings for profit
OptiCargo: make the booking algorithm profitable You are given two streams/lists: - Flights you may attempt to book. Each flight has: - flight_id ...
Discuss ML infrastructure fundamentals
Discuss ML infrastructure fundamentals ML System Design: Infra Stack, Feature Store, Reproducibility, and Monitoring Context: You are designing and op...
Calculate Circular Route Query Distance
You are given a circular route with n stops numbered 0 to n - 1. The array distances has length n, where distances[i] is the clockwise distance from s...
Design and Implement a Mini SQL Query Engine
You're given a set of in-memory tables — each table is a collection of rows over a known, typed schema (e.g., a table is a list of row objects, and ea...
Design an IPv4 Address Iterator
This question evaluates a candidate's ability to represent and iterate IPv4 addresses, covering parsing, numeric arithmetic with carry between octets,...