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 Paths to Target Nodes
You are given a weighted directed graph representing distances between nodes. - There are n nodes labeled from 0 to n - 1. - edges[i] = [u, v, w] mean...
Solve two interview coding problems
The interview included two coding problems. Problem 1: Find valid robot locations in a grid You are given a 2D grid containing empty cells and obstacl...
Infer an Unknown Alphabet Order
You are given a list of words that is already sorted according to an unknown alphabet. Derive one valid ordering of the characters in that alphabet. R...
Find Fastest Commute Mode
This question evaluates graph traversal and shortest-path reasoning on a constrained 2D grid, including modeling movement rules per transportation mod...
Solve power jumps and graph tour
This pair of problems evaluates algorithmic problem-solving in number representation and combinatorial graph optimization, focusing on competencies in...
Compute Infection Time in a Grid
This question evaluates competence in grid-based graph traversal and simulation of propagation dynamics, focusing on state management, time-step model...
Minimize time for two handlers
This question evaluates algorithmic optimization skills and stateful scheduling reasoning, focusing on task assignment trade-offs and cumulative cost ...
Shortest Talent-Covering Team Starting At Each Index
There are n students in a line. Each student has exactly one talent represented by an integer from 1 to talentsCount. A valid team is a contiguous sub...
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 an In-Memory Database
Implement a simple in-memory database with a flexible, schema-less record model. Requirements: - Each record is a mapping from column_name to value. -...
Compute Inherited Role Privileges
You are given n roles. The array initialPrivileges has length n, where initialPrivileges[i] is the list of privileges directly assigned to role i. You...
Solve meeting and tree problems
This question evaluates skills in interval manipulation and boolean-based merging, along with binary-tree traversal and side-view extraction for strin...
Build Ranked Feed With Photo Batching
You are given a list of feed objects. Each object has: - id: a unique string - type: one of Normal, Video, or Photo - score: a numeric ranking score C...
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...
Find Earliest Fully Connected Time
This question evaluates a candidate's understanding of dynamic graph connectivity, time-ordered event processing, and state maintenance in graphs, inc...
Probability That One Fair Die Beats Another
Probability That One Fair Die Beats Another Two fair dice, A and B, are represented by integer arrays. Each array element is one physical face, so dup...
Find High-Intensity Time Periods
Given a list of time-series readings, where each reading is {timestamp, intensity}, and a numeric threshold, return all maximal time periods during wh...
Solve Balanced Permutations and Tree Reversals
You have 90 minutes to solve the following two independent coding problems. Problem 1: Balanced Prefix Values in a Permutation You are given a permuta...
Design Hierarchical Permission Checks
You are given a hierarchy of groups represented as a tree, for example World -> Country -> City. Each advertiser can be granted access at any group no...
Solve Grid Path and Graph Sampling
This question evaluates graph algorithms and probabilistic/combinatorial reasoning, covering multi-criteria shortest-path optimization (minimizing tra...