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."
Compare convolutions and transformers
Compare CNNs and Transformers Task Explain the key differences between convolutional neural networks (CNNs) and transformer architectures. Specificall...
Implement price-based order matcher
Design and implement a price-based order matcher for unit-sized orders. You are given an array orders where each element is [type, price]: type = 1 de...

Implement universal adversarial attack on GPT-2
Robustness Evaluation: Universal Adversarial Prompts for GPT-2 You are in a Machine Learning Engineer interview. Explain how you would build a control...
Implement Plus One
This question evaluates proficiency in array manipulation, elementary arithmetic operations such as carry propagation, and careful handling of edge ca...
Design Disk-Based Inventory Serving
Design software for a machine that has no SSD storage and only a small amount of RAM. The machine must service inventory requests using spinning disks...
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...
Predict Stock Prices from Google Search Data
You are given access to historical Google search data — relative search volume over time for arbitrary query terms — along with standard historical ma...
How would you handle conflict and data pressure?
Behavioral questions (answer both) 1) Leading amid collaborator disagreement You are newly assigned as the team lead by your manager. One collaborator...
Handle conflict and motivate engineering teams
You are interviewing for a Senior Software Engineer / Tech Lead role. The interviewer asks two related leadership questions: 1. Handling conflict ...
Implement PyTorch training loop
Implement a basic PyTorch training loop You are given a PyTorch neural network model, a DataLoader that yields (inputs, targets) batches, an optimizer...
List hyperparameter tuning methods
Describe common methods for hyperparameter tuning in machine learning. For each method, explain: - How it works conceptually. - Its advantages and dis...
Analyze attention complexity and improvements
This question evaluates understanding of Transformer self-attention in the Machine Learning domain, testing the ability to analyze time and space comp...
Describe overfitting and L1/L2 regularization
Define overfitting in machine learning and explain why it is harmful. Then describe L1 and L2 regularization: - How each one modifies the loss functio...
Explain the bias–variance trade-off
Explain the bias–variance trade-off in supervised learning. In your answer, cover: - What bias and variance mean in the context of a prediction model....
Implement run-length encoding and decoding
You are given a string consisting of lowercase English letters. You need to implement run-length encoding (RLE) and its corresponding decoding. 1. Enc...
Design a Synchronous Text Classification API
Design a Synchronous Text Classification API A trained machine-learning model classifies text. Design the system that exposes this model through synch...
Find the Best Commute Mode
This question evaluates competency in grid-based pathfinding, graph traversal, and multi-criteria optimization of path time and cost within the Coding...
How do you escape the circle?
A dog runs continuously along the boundary of a circle of radius 1 at speed 4. You start at an arbitrary point strictly inside the circle and can run ...
Solve pair-counting and account-merging problems
Problem A — Count qualifying products You are given two integer arrays A and B, and an integer T. For each element a in A, count how many elements b i...
Solve three coding tasks: binary search, tree path, subarray
Solve three coding tasks: binary search, tree path, subarray Solve the following coding tasks: 1) In a sorted array, every value appears exactly twice...