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 Maximum Candies With Two Types
You are given a row of candies represented by an array candies, where candies[i] is the type of the candy at position i. You may choose any starting p...
Explain arrays and memory layout
What is an array? How is an array represented in memory (contiguous layout, element size and alignment, indexing arithmetic). Analyze time complexitie...
Reduce frontend network requests efficiently
Reduce Redundant Frontend Requests for Availability and Pricing Context You are designing the web client and APIs for a bookings marketplace that disp...
Implement attention and nucleus sampling; compare to top-k
Implement Multi‑Head Attention and Nucleus (Top‑p) Sampling Context You are building core components used in Transformer-based language models. Implem...
Calculate tiered cost and break-even
Tiered Pricing and Shipping Cost Function You are ordering q units from a vendor with the following pricing: - Fixed setup fee per order: $500 - Unit ...
Find k closest values in a BST
Find k closest values in a BST Given a binary search tree with n nodes and a real target t, return k node values whose distances to t are smallest. Im...
Produce a Deterministic Course Plan
Produce a Deterministic Course Plan There are num_courses courses numbered 0 through num_courses - 1. Each prerequisite pair is [course, prerequisite]...
Compute Piecewise Linear Interpolation
You are given an unsorted list of distinct 2D points (x_i, y_i). When the points are sorted by x_i, connecting adjacent points forms a polyline. Given...
Count Valid Infection Orders
This question evaluates combinatorial enumeration and algorithmic reasoning by counting valid sequences of state changes in a linear infection process...
Explain a shader compiler pipeline
Explain a shader compiler pipeline Describe the architecture of a shader compiler that ingests GLSL/HLSL and outputs SPIR-V or ISA. Cover lexical anal...
Explain linear algebra for graphics transforms
Explain linear algebra for graphics transforms MVP Pipeline, Homogeneous Coordinates, NDC, Screen Space, and Normal Transformation Context You are wor...
Explain move and recent project
Explain move and recent project Behavioral + Project Deep-Dive: Motivation and Recent Project Context: Onsite behavioral prompt for a Quantitative Sof...
Design approach for class imbalance
Design approach for class imbalance Imbalanced Binary Classification: Learning, Evaluation, and Model Selection Context You are training a binary clas...
Design core bank operations
Design core bank operations Design a BankSystem Class (Take‑home Project) Goal Design and document a BankSystem class that supports three operations: ...
Maximize weighted sum with disjoint adjacent swaps
You are given an integer array arr of length n (0-indexed). Define the weighted sum as: S = Σ_{i=0..n-1} arr[i] * (i + 1). You may perform any number ...
Explain why you want this company and leadership
Scenario You are interviewing with a hiring manager (recently promoted) for a small, globally distributed IC/package design team. Questions 1. Company...
Design camera access-control service
Design camera access-control service Design an Access-Control Service (Users, Cameras, Nested Groups) Context You are building a multi-tenant access-c...
Find longest palindromic substring
This question evaluates knowledge of string algorithms and pattern recognition, focusing on identifying palindromic substrings and reasoning about tim...
Design an ads data model
This question evaluates a candidate's ability to design scalable data models and system architecture for an ads platform, including entity relationshi...
Design an ad frequency capping system
This question evaluates a candidate's ability to design scalable, low-latency distributed systems that enforce ad frequency caps across users, devices...