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."

Explain LLM post-training methods and tradeoffs
This question evaluates a practitioner's knowledge of LLM post-training methods—including supervised fine-tuning, preference optimization approaches (...
How do you prioritize and handle failures?
Answer the following behavioral questions with concrete examples from your experience. 1) Prioritization approach - When you have multiple competing t...
Choose Optimal Network Retry Threshold
You work on a mobile music streaming team responsible for improving playback reliability while minimizing battery drain. When the app is streaming aud...
Define Marketplace Success Metrics and Investigate Their Movement
Define Marketplace Success Metrics and Investigate Their Movement A two-sided live-commerce marketplace asks you to define success metrics. A primary ...
Design a multithreaded CPU 1D convolution
Question Design and implement a multithreaded CPU version of the valid 1‑D convolution. Valid convolution produces an output of length M = N − K + 1, ...
Compute the Diameter of an Undirected Tree
Compute the Diameter of an Undirected Tree You are given an undirected tree with nodes numbered from 0 through n - 1. The diameter is the number of ed...
Convert Valid Snake Case to Lower Camel Case
Convert Valid Snake Case to Lower Camel Case Given a valid snake-case identifier, convert it to lower camel case. The input consists of one or more lo...
Design and implement core Tetris game logic
Implement the core logic of the Tetris game in a way that can run in a terminal (no graphical UI required). Requirements: - Board/grid: standard size ...
Estimate total attendance from size-biased reservation sample
You run a restaurant with N = 10,000 reservations in a day. Each reservation j has: - Reserved party size: \(R_j\) (positive integer) - Actual number ...
Design autocomplete and merchant bulk edits
This question evaluates a candidate's system design competency across real-time search/autocomplete and large-scale product update pipelines, covering...
Choose tools for scalable distributed systems
This question evaluates proficiency in designing scalable distributed systems, testing requirement analysis (latency, throughput, durability, consiste...
Design query pagination for large datasets
This question evaluates a candidate's understanding of pagination strategies, cursor/keyset design, SQL query formulation, consistency guarantees unde...
Design a URL shortening service
This question evaluates systems design skills including scalable architecture, data modeling, low-latency routing, availability, and operational conce...
Solve the N-Queens problem
This question evaluates a candidate's competence in backtracking, constraint satisfaction, combinatorial search, recursion, and state representation. ...
Should Company Launch Vegan Burger Based on Profit Analysis?
Case: Launching a Vegan Burger — Unit Economics and Go/No-Go You are a data scientist supporting a product team that is deciding whether to launch a v...
Design A URL Shortener
This question evaluates skills in large-scale system design, covering distributed systems, API design, data modeling and storage, caching, short-code ...
Implement attention and Transformer with backward pass
Implement Scaled Dot-Product Attention and a Transformer Block (No Autograd) Context: Build multi-head self-attention and a Transformer encoder-style ...
Calculate the Probability That Two Dice Sum to Seven
Roll two independent fair six-sided dice. What is the probability that their sum is 7? Show the sample space and favorable outcomes. Then explain why ...
Find the Color Probability After Discarding Cards
A standard 52-card deck has 26 red and 26 black cards and is uniformly shuffled. Discard the first 10 cards without observing their identities. What i...
Design Online Chess Matchmaking
This question evaluates a candidate's ability to design scalable, low-latency matchmaking backend systems, covering distributed service decomposition,...