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."
Find shortest subarray to restore order
Given an integer array, find the shortest contiguous segment which, if sorted in ascending order, makes the entire array non-decreasing. Return the le...
Design file deduplication across nested directories
Design and implement a file deduplication tool that, given a root directory, identifies groups of duplicate files. Requirements: traverse nested direc...
Describe handling deadlines, conflicts, feedback, and ownership
Behavioral Interview Prompts — Software Engineer (Onsite) Context: You will be asked to share specific, first-person examples using a structured forma...
Compute currency conversion via graph search
Given a list of currency pairs, e.g., [('USD','CAD'), ('CAD','EUR'), ...], and a parallel list of conversion ratios [1.1, 1.2, ...] where ratio r mean...
Compute negative-price probability after n steps
Random-Walk Price Crossing Probability Setup - Initial price: S₀ = s (real number). - Step size: x > 0. - Number of days: n (integer ≥ 0). - Each day ...
Compute permutations with repeated letters
Counting Strings with Repeated Characters Problem Given two nonnegative integers m and n, how many distinct strings can be formed that contain exactly...
Describe improving workflow and challenges
Behavioral: Improving a Team's Development Workflow You are a software engineer in a technical screen. Answer using a concise, structured story (e.g.,...
Find k most frequent in linear time
Given an integer array nums and an integer k (1 ≤ k ≤ number of distinct values in nums), return any k values that appear most frequently. Implement a...
Implement tree column grouping and minimal parentheses fixes
Part A — Binary tree column grouping: Given the root of a binary tree, group node values by their vertical columns from leftmost to rightmost using x-...
Implement Union-Find for connectivity
Implement a Disjoint Set Union (Union-Find) data structure with path compression and union by rank. Support operations: make_set, find(x), union(x, y)...
Introduce your background and motivations
Behavioral Prompt — Introduce Yourself (Data Scientist) Context You are interviewing for a Data Scientist role. Prepare a concise 2–3 minute introduct...
Design set with O(1) random access
Design a data structure ("FancySet") that stores unique integers and supports the following operations, each in average O(1) time: - add(x): Insert va...
Validate a training courses catalog
This question evaluates understanding of directed graphs, cycle detection, dependency validation, and data consistency in the context of a training co...
Design a task system with assignments
This question evaluates data modeling, API/interface design, and system-design competencies—focusing on entity relationships (Task versus Assignment),...
Implement an in-memory order book API
This question evaluates understanding of in-memory data structures and API design for maintaining ordered collections with FIFO semantics, correctness...
Check if each recipe is a contiguous subsequence
This question evaluates proficiency in algorithmic sequence matching and contiguous subarray detection, encompassing array/string pattern matching and...
Maximize revenue by choosing one query type
This question evaluates optimization and numerical reasoning skills, specifically selecting a single repetitive action to maximize aggregate revenue u...
Design ad click tracking and dashboard at scale
This question evaluates a candidate's skills in designing large-scale distributed systems including real-time data ingestion and aggregation, storage ...
Explain your most impactful project end-to-end
End-to-End Project Deep Dive (Behavioral) Walk through one recent, high-impact project you led or contributed to end-to-end. Cover the following: 1. P...
Describe a flagship project’s architecture and tradeoffs
Behavioral/Leadership: Deep Dive on a Significant Project Context: Onsite software engineering interview. Choose one substantial project you personall...