Company
Microsoft interview questions
252 practice questions in the style of Microsoft's interviews, covering Behavioral & Leadership, Coding & Algorithms, Product Design & Strategy, Machine Learning, ML System Design, Statistics & Math, Software Engineering Fundamentals, Data Manipulation (SQL/Python), System Design, Analytics & Experimentation, Product / Decision Making.
21 easy197 medium34 hard
Microsoft interview questions by the numbers
Last updated
Katkat has 252 Microsoft interview questions. The largest topics are Coding & Algorithms (44%), System Design (17%) and Behavioral & Leadership (11%). By difficulty: 8% easy, 78% medium and 13% hard. The most common round is Onsite (51%). Frequent concepts include System Design, Concurrency, Scalability and Distributed Systems.
Topics
- Coding & Algorithms44% · 111
- System Design17% · 43
- Behavioral & Leadership11% · 28
- Machine Learning6% · 15
- ML System Design5% · 13
Difficulty
- Easy8% · 21
- Medium78% · 197
- Hard13% · 34
Interview rounds
- Onsite51% · 128
- Technical Screen34% · 86
- Online Assessment8% · 20
- HR Screen4% · 11
- Other3% · 7
Roles
- Software Engineer72% · 181
- Data Scientist11% · 28
- Machine Learning Engineer10% · 24
- Product Manager3% · 7
- Site Reliability Engineer2% · 6
Frequent concepts
- System Design9% · 23
- Concurrency6% · 15
- Scalability6% · 14
- Distributed Systems4% · 11
- Arrays4% · 10
- Data Structures4% · 10
Most mentioned in interview experiences
- 1.Choose Classification Metrics Under Asymmetric Costs2 reports
- 2.Explain SHAP in an ML System2 reports
- 3.Implement a Thread-Safe Per-Key Ordered Executor2 reports
- 4.Resume Deep Dive: Technical Decisions, Personal Contribution, Challenges, Impact2 reports
- 5.Adapt When Project Requirements Change Midway1 report
- 6.Answer Running Median Queries Over a Stream of Inserted Integers1 report
- 7.Behavioral: a problem that stumped you, your peers and AI tools, and how you solved it1 report
- 8.Behavioral: Delivering Under a Tight Deadline and Handling a Difficult Situation1 report
- 9.Behavioral: Long Blockers, Missed Deadlines or User Complaints, and Career Direction1 report
- 10.Bucket Words That Are Letter Rearrangements of One Another1 report
Counted from 35 candidate interview experiences on Katkat. How we collect and count
Showing 181–210 of 252 results
A coding question that asks you to insert spaces into a string that lost them so that every piece is a dictionary word, returning the smallest valid sentence or None when no split exists. It tests string segmentation with dictionary lookups, handling of impossible inputs, and a canonical tie-breaking rule.
MicrosoftApplied ScientistCoding & AlgorithmsOnsiteThis question evaluates behavioral and leadership competencies—communication, decision-making under ambiguity, stakeholder alignment, technical leadership, mentorship, and impact articulation—within the Category: Behavioral & Leadership for a software engineering role.
MicrosoftSoftware EngineerBehavioral & LeadershipTechnical ScreenMaintain stable case-insensitive unique column names across additions, removals, reordering, reappearance, and natural suffix collisions, with independent table histories.
MicrosoftSoftware EngineerCoding & AlgorithmsOnsiteA coding problem that takes points in two or more dimensions, finds every pair whose axis-aligned box has non-zero volume, and returns those pairs with their volumes in a strict order. It tests careful pair enumeration, handling of flat or degenerate boxes, and deterministic sorting with tie-breaks.
MicrosoftSoftware EngineerCoding & AlgorithmsTechnical ScreenLive troubleshooting scenario for a senior reliability role: a public-facing service shows very high CPU, and you must keep answering what you would check next. It tests impact-first triage, separating traffic growth from per-request regressions, profiling, and weighing rollback, scaling, throttling and asynchronous queueing.
MicrosoftSite Reliability EngineerSoftware Engineering FundamentalsOnsiteA string problem: given uppercase letters and a budget of k single-letter changes, find the longest contiguous substring that can be turned into one repeated letter. It tests efficient substring scanning with letter counts and careful reasoning about when a candidate substring stays valid.
MicrosoftSoftware EngineerCoding & AlgorithmsOnsiteLow-level design question about an in-process logging library that many threads call at the same time. It tests class modeling for loggers, records, formatters and output destinations, plus thread safety, the hand-off to a background writer, ordering, overflow behavior, failure isolation and clean shutdown.
MicrosoftSoftware EngineerSoftware Engineering FundamentalsOtherPractice diagnosing and stabilizing a time-series ML forecasting pipeline after online accuracy drops. The solution covers data ingestion, feature generation, training, serving, time-aware evaluation, segment metrics, baselines, online canaries, remediation, monitoring, and ML release governance.
MicrosoftProduct ManagerProduct / Decision MakingHR ScreenDetermine the maximum possible length of two identical arrays formed by repeatedly merging adjacent elements of two given positive-integer arrays, or return -1 if impossible.
MicrosoftSoftware EngineerCoding & AlgorithmsOnsiteTests dynamic programming and hash map aggregation to maximize points under adjacency constraints over a sparse range of values.
MicrosoftSoftware EngineerCoding & AlgorithmsOnline AssessmentThis question evaluates proficiency in array algorithms, time and space complexity analysis, and techniques for bounded-range optimization and streaming adaptation.
MicrosoftSoftware EngineerCoding & AlgorithmsOnsiteA coding question that first asks for the largest sum of a non-empty contiguous subarray, then for the same quantity when the array is written out k times back to back. It tests subarray reasoning across copy boundaries, all-negative inputs, and sums that overflow 32-bit integers.
MicrosoftApplied ScientistCoding & AlgorithmsOnsiteCompute the area of every water body on a rectangular map tile, reported in the order a row-by-row scan first touches each one; tests connected components on a grid and avoiding recursion limits on huge regions.
MicrosoftSoftware EngineerCoding & AlgorithmsOnsiteA hands-on LLM evaluation exercise on measuring model quality, comparing prompt or model versions, and detecting hallucinations against supplied context. It also asks for a small Python groundedness scorer that flags unsupported sentences and aggregates a hallucination rate, testing evaluation judgment and clean, well-tested code.
MicrosoftMachine Learning EngineerMachine LearningOnsiteA coding problem that slides a window of fixed length k across an integer array and asks for the median of every window position, returned as floats in window order. It tests keeping the middle of a changing collection available as elements enter and leave, exact handling of even-sized windows, and overflow-safe averaging.
MicrosoftSoftware EngineerCoding & AlgorithmsOnsiteThis question evaluates algorithm design and data structure proficiency, focusing on merging multiple sorted sequences and reasoning about time and space complexity for large numbers of arrays and elements.
MicrosoftSoftware EngineerCoding & AlgorithmsOnsiteThis question tests the ability to manage and merge interval-based data, requiring sorting and a single-pass linear traversal to resolve overlaps.
MicrosoftSoftware EngineerCoding & AlgorithmsTechnical ScreenCalculate the minimum monetary cost to travel between two cities in a road network where fuel is consumed per unit distance and can be stockpiled with unlimited capacity at local city prices.
MicrosoftSoftware EngineerCoding & AlgorithmsOnsitePick at least k houses from a row without choosing two neighbors, so that the largest amount in any chosen house is as small as possible, and return that minimum. With up to 100,000 houses and values up to one billion, the task tests reasoning about a min-max objective under an adjacency constraint.
MicrosoftSoftware EngineerCoding & AlgorithmsOnline AssessmentA scheduling problem that asks for the fewest rooms needed to hold a set of meetings given as half-open time intervals, where a room freed at a given moment can be reused immediately. It tests interval reasoning, correct handling of shared endpoints and duplicates, and an efficient solution for large inputs.
MicrosoftSoftware EngineerCoding & AlgorithmsOnsiteGiven package weights in a fixed loading order and a number of days, find the smallest ship capacity that delivers every package within that many days, carrying one contiguous run of packages per day. It tests reasoning precisely about feasibility, choosing correct bounds and handling large inputs efficiently.
MicrosoftSoftware EngineerCoding & AlgorithmsOnsiteA string transformation problem: convert a source string into a target string using directed, weighted character replacement rules that may be chained at a position. It tests reasoning about multi-step conversions, choosing the cheapest of duplicate rules, detecting impossible positions, and totals beyond the 32-bit range.
MicrosoftSoftware EngineerCoding & AlgorithmsOtherFind how often the most frequent eligible substring appears in a lowercase string, where an eligible substring has a length within a given range and no more than a set number of distinct letters. Overlapping occurrences count and inputs reach 100,000 characters, so the task tests efficient substring counting.
MicrosoftSoftware EngineerCoding & AlgorithmsOnline AssessmentA string coding problem: among all substrings whose length falls in a given range and that use at most a given number of distinct letters, return how many times the most frequent one occurs. It tests handling overlapping occurrences and the distinct-letter limit, counting efficiently on strings of up to 100,000 characters, and returning zero when nothing qualifies.
MicrosoftSoftware EngineerCoding & AlgorithmsOnline AssessmentPractice defining a North Star Metric and experiment for a Microsoft product using Teams as the example. The solution defines Weekly Actively Collaborating Users, leading indicators with SQL sketches, telemetry requirements, randomization unit, experiment metrics, guardrails, power, and analysis.
MicrosoftProduct ManagerProduct / Decision MakingHR ScreenBehavioral incident-response question for a senior reliability role: describe an on-call incident on a large customer-facing service and how you judged severity and escalated, then a case where you tied runtime signals to a recent deployment or feature flag change. It tests triage judgment, coordination and reducing time to resolution.
MicrosoftSite Reliability EngineerBehavioral & LeadershipOnsiteParse signed integers in bases 2–36 with explicit syntax, negative-boundary handling, pre-arithmetic overflow checks, and deterministic error precedence.
MicrosoftSoftware EngineerCoding & AlgorithmsTechnical ScreenA system design interview question asking you to build a peer-to-peer file sharing network where users download large files directly from other users. It tests content identification, peer discovery, chunked parallel transfer with integrity checks, NAT traversal, incentives against free-riders, and keeping files available as peers churn.
MicrosoftSoftware EngineerSystem DesignOnsiteEvaluates proficiency in tree traversal and in-place pointer manipulation, emphasizing the perfect binary tree invariant and space-time trade-offs; category/domain: Coding & Algorithms. It is commonly asked because it tests ability to perform level-wise linking under an O(1) extra-space constraint and operates at the implementation-level of algorithms and data structures.
MicrosoftSoftware EngineerCoding & AlgorithmsOnsiteA machine learning design exercise: given a tab-separated HR dataset with features such as age, job role, monthly income and overtime, predict which employees will leave and explain which factors drive attrition. It covers feature processing, model choice, class imbalance, evaluation metrics, threshold selection and interpretability.
MicrosoftApplied ScientistML System DesignOnsite
Microsoft interview experiences
All 55 →- A Screen and Four Hiring-Event RoundsMicrosoft · Software Engineer · Senior+ · Onsite · Sep 2026
The report describes a senior software engineering interview for Microsoft’s Intelligent Conversation and Communications Cloud organization. A technical screen in late August preceded a four-round hiring event in mid-September. The screen combined a three-number sum problem with a question about resolving disagreement. The first event round examined a thread-safe executor that preserves task orde…
- Four Rounds in One Day, Not SelectedMicrosoft · Software Engineer · Onsite · Sep 2026Rejected
The JD said the role is in Windows + Devices, with two teams, WSSI and AI Trust. The interviewer said the role mainly works on privacy and compatibility. There were 5 interviews in total: The first one was a CV + technical questions round, but I think they only asked about my resume and BQ. Then four rounds, all scheduled on the same day. Round 1: BQ + Coding Why Microsoft and why this role The t…
- SDE-2 Loop with an AI-Assisted Design Round and a Linux cp Deep DiveMicrosoft · Software Engineer · Onsite · Sep 2026
Round 1 The first problem was a variant of Longest Repeating Character Replacement. We discussed both the brute-force and the optimal solution in the interview, and I implemented it. The second problem was a Medium-difficulty tree traversal question. We also discussed some basic DSA concepts. Round 2 Design a notification system for Windows that lets different applications generate and display no…
- 25 Minutes to Hand-Code a Concurrent Task ExecutorMicrosoft · Software Engineer · Senior+ · Technical Screen · Aug 2026
I applied pretty randomly online, and HR reached out to schedule an interview for yesterday afternoon. I went in with a "just watching the show" mindset, and honestly the whole experience was terrible — basically a setup for failure. If I'd actually been seriously job hunting, this would have driven me insane. First, it was a one-hour technical phone screen, and half an hour of that went into goi…
- A 90-Minute OA and Only Time for Brute ForceMicrosoft · Software Engineer · Online Assessment · Aug 2026
The latest OA: 90 minutes, two questions, with AI hints for the second question. I only managed to write a brute-force solution for the second one. It probably needed DP, but I ran out of time. 2571 You are given an integer array requiredSum of length n. Build an array result of length n that satisfies all of these conditions: result is non-decreasing: result[i] ≤ result[i + 1] for every valid i.…
More companies
- Meta666
- Amazon653
- Google486
- OpenAI342
- Capital One268
- DoorDash241
- Anthropic225
- Uber217
- Apple177
- TikTok176
- Pinterest161
- ByteDance160
- LinkedIn154
- Stripe139
- Snowflake130
- Databricks122
- Airbnb112
- Rippling106
- Oracle104
- Coinbase99
- Netflix97
- NVIDIA95
- Snapchat94
- Citadel90
- Waymo90
- Instacart87
- Roblox84
- Salesforce77
- Optiver76
- Shopify63
- Robinhood60
- Atlassian55
- Hudson River Trading55
- Two Sigma55
- J.P. Morgan53
- PayPal53
- xAI53
- Lyft52
- Tesla52
- Other51
