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."
Count Numbers With Odd Zeros
Given an array a of non-negative integers, count how many elements contain an odd number of digit '0' in their decimal representation. Notes: - Treat ...
Solve remembered OA coding tasks
The online assessment reportedly had five coding questions, but only the following three were described clearly enough to reconstruct: 1. Find the top...
Compute maze score using shortest path
You are given a grid-based maze game. - The maze is an R x C grid of characters: - '#' = wall (cannot pass) - '.' = empty cell - 'S' = current p...
Explain React and Firebase data interaction
This question evaluates understanding of frontend-backend data flow and integration with cloud-hosted databases, specifically concepts like real-time ...
Explain CSS specificity and selector precedence
This question evaluates a candidate's understanding of CSS specificity and selector precedence, focusing on how the browser prioritizes competing styl...
Implement an IPv4 Iterator
This question evaluates proficiency in IPv4 address representation and arithmetic, CIDR parsing, iterator API design for forward and backward traversa...
Convert Dictionary to DataFrame
Using Python and pandas, convert the following dictionary into a DataFrame. Each top-level key is a target column name, and each value is a list of [r...
Move zeros to front
This question evaluates array manipulation and in-place algorithm skills, specifically competency in stable element reordering, index management, and ...
Implement wildcard querySelector to extract URL
This question evaluates implementation skills for a simplified selector engine, DOM traversal and manipulation, wildcard attribute pattern matching, a...
Maximize score in 15-sum card game
This question evaluates algorithmic problem-solving in combinatorial search, state-space optimization, and memoization by asking for the maximum achie...
Compute ads revenue by geography in SQL
You have ad delivery logs for a shop-ads system. Tables ad_impressions - impression_id STRING (PK) - ts TIMESTAMP (UTC) - user_id STRING - shop_id STR...
Explain and interpret p-values correctly
This question evaluates statistical inference and experimental-design competencies, focusing on a precise definition and correct interpretation of p-v...
Implement palindrome check and valid parentheses
You have 20–25 minutes per problem. Implement the following two functions and be prepared to explain your approach and time/space complexity. Problem ...
Answer ancestor-walk queries on a rooted tree
Problem (Tree / Parent Array Queries) You are given a rooted tree with n nodes labeled 1..n, represented by a parent array par[1..n]: - par[i] is the ...
Compute per-coin quarterly amounts and totals
Problem (SQL: Conditional Aggregation) You have two tables: coins - coin_id INT PRIMARY KEY - name VARCHAR transactions - id BIGINT PRIMARY KEY - coin...
Compute height of tree with deleted nodes; minimize deletions
You are given a rooted tree (not necessarily binary). Each node has a list of children. Some nodes are marked as deleted = true. Define the effective ...
Maximize Minimum Scaled Value
This question evaluates algorithmic optimization and resource-allocation skills, focusing on integer scaling under a global budget to maximize the min...
Generate all permutations of an array
This question evaluates understanding of permutation generation, recursion and backtracking techniques, along with skills in state-space exploration a...
Implement cd and merge intervals
This question evaluates proficiency in filesystem path normalization (string parsing, tokenization, and edge-case handling) and interval-merging algor...
Count paths with prime-ending jumps
You are given an integer n representing the top of a staircase, where you start at step 0 and want to land exactly on step n. In one move, you may jum...