Microsoft Interview Questions
Practice 189 real interview questions from Microsoft. Covers Coding & Algorithms, System Design, Behavioral & Leadership, Machine Learning. For roles including Software Engineer, Data Scientist, Machine Learning Engineer, Product Manager.

"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."
Query departments and top earners
You are given three tables: 1. company - employee_id INT - first_name VARCHAR - last_name VARCHAR - department VARCHAR - salary DECIMAL...
Design a Secure Copilot API
Design a secure API for an enterprise AI copilot product. Assume the product serves multiple organizations, and authenticated users can send prompts, ...
Design a typeahead search service
Design a search autocomplete system for a large application. As a user types a prefix, the system should return relevant suggestions with low latency....
Implement SFT Sample Packing
Implement a preprocessing function for supervised fine-tuning data for an autoregressive language model. You are given a list of tokenized training sa...
Implement SQL Table and DNA Ordering
Two independent coding exercises were asked. Solve both. Problem A: CSV-backed in-memory table Build a tiny in-memory relational table initialized fro...
Implement concurrent structures and debug queue code
The coding rounds covered several implementation and debugging tasks: 1. Implement an LRU cache that supports get(key) and put(key, value) in constant...
Explain OOP design and API rollout
In one interview round, the discussion focused on practical backend engineering rather than pure algorithms. Discuss both of the following: 1. You are...
Solve Throughput, Rate Limiting, and LFU
The interview included the following coding tasks: 1. Minimum processing speed: You are given an array piles, where piles[i] is the size of the ith pi...
Design User Re-engagement Notifications
Design a re-engagement system for an AI assistant product. The system should support at least two use cases: 1. Send relevant notifications to inactiv...
Design a RAG Ranking Pipeline
Design a retrieval-augmented generation pipeline for Microsoft Teams that helps an AI agent answer a user query by finding the most relevant applicati...
Return Top K Relevant Apps
You are given a mapping from application name to keyword relevance scores, for example: `json { "github": {"diff": 0.3, "code review": 0.8}, "jira...
Design quality checks for spreadsheet LLM data
You are given a dataset for a spreadsheet assistant. Each example contains: 1. a natural-language prompt, 2. an Excel-style table or worksheet represe...
Choose Classification Metrics Under Asymmetric Costs
You are evaluating a binary classification model for a business problem. Explain how to use a confusion matrix to compute and interpret: - precision, ...
Traverse an Org Chart by Level
You are given an organization's reporting structure as a flat list of employee-manager relationships. Exactly one employee is the root (the CEO) and h...
Implement greedy decoding and beam search
You are given access to an auto-regressive language model that can score the next token based on a prefix. Assume: - next_logprobs(prefix_tokens) -> M...
Assemble DNA payload strings from tagged fragments
You are given a list of DNA-like fragments. Each fragment is a tuple: - start_tag: string - end_tag: string - payload: string A valid DNA chain is for...
Design a URL Shortener
Design a URL-shortening service similar to TinyURL. The service should accept a long URL and return a short code, and later redirect requests for that...
Stream output until stop token appears
You are implementing a simplified streaming conversational AI output filter. Text arrives in chunks (strings) in order. There is a special stop token ...
Compute discounted prices and full-price indices
You are given an array prices of length \(n\). Items are sold from left to right, and each item’s final selling price is computed as follows: For item...
Find all balanced k in a permutation
You are given a permutation \(p\) of length \(n\) containing each integer from \(1\) to \(n\) exactly once. For each \(k\) where \(1 \le k \le n\), de...