Microsoft Coding Interview Questions

We track 1339 coding questions asked at Microsoft, tagged with the algorithms and concepts they test. The most common: Array, String, Hash Table, Dynamic Programming, Math.

Browse all 1339 Microsoft questions →

Concept mix

Each question's weight is split evenly across its concepts, so the shares sum to 100%.

How many questions involve each concept

Share of all 1339 tracked Microsoft questions that touch each concept. Questions usually involve several, so these overlap.

Where Microsoft differs from the average company

Concept weight at Microsoft relative to the average across all companies we track. Green means Microsoft leans on it harder than most.

Microsoft specialties

Concepts that show up at Microsoft but are rarely asked elsewhere. They are easy to get blindsided by.

Difficulty mix

Level split of the 1339 tracked Microsoft questions.

  • Junior29% (382)
  • Mid/Senior55% (740)
  • Staff16% (217)

Every concept in Microsoft interviews

ConceptQuestions% of questionsShare of mix
Array69251.7%18.4%
String29422.0%9.1%
Hash Table26219.6%5.8%
Dynamic Programming21816.3%6.0%
Math20515.3%6.6%
Sorting17312.9%3.7%
Depth-First Search14010.5%2.7%
Greedy1329.9%3.0%
Binary Search1249.3%2.9%
Two Pointers1188.8%3.0%
Breadth-First Search1148.5%2.2%
Matrix1057.8%2.3%
Tree987.3%2.0%
Bit Manipulation856.3%2.3%
Stack856.3%2.0%
Binary Tree846.3%1.7%
Simulation745.5%1.8%
Heap (Priority Queue)735.5%1.3%
Prefix Sum715.3%1.7%
Sliding Window705.2%1.6%
Graph Theory634.7%1.4%
Linked List574.3%1.9%
Database564.2%4.4%
Backtracking523.9%1.3%
Counting473.5%0.9%
Design473.5%0.9%
Union-Find372.8%0.6%
Recursion342.5%0.9%
Divide and Conquer312.3%0.6%
Enumeration292.2%0.7%
Monotonic Stack282.1%0.5%
Queue231.7%0.4%
Binary Search Tree221.6%0.4%
Ordered Set211.6%0.3%
Number Theory201.5%0.5%
Trie181.3%0.4%
Memoization161.2%0.3%
Topological Sort141.0%0.2%
Geometry120.9%0.3%
Shortest Path120.9%0.2%
String Matching120.9%0.3%
Bitmask110.8%0.2%
Hash Function110.8%0.2%
Segment Tree100.7%0.1%
Doubly-Linked List90.7%0.2%
Monotonic Queue90.7%0.1%
Counting Sort70.5%0.1%
Binary Indexed Tree60.4%0.1%
Bucket Sort60.4%0.1%
Combinatorics60.4%0.1%
Data Stream60.4%0.1%
Game Theory60.4%0.1%
Rolling Hash60.4%0.1%
Brainteaser50.4%0.1%
Merge Sort50.4%0.1%
Randomized50.4%0.1%
Interactive40.3%0.1%
Quickselect40.3%0.1%
Concurrency30.2%0.2%
Probability and Statistics30.2%0.1%
Iterator20.1%0.0%
Sweep Line20.1%0.0%
Minimum Spanning Tree20.1%0.0%
Radix Sort20.1%0.0%
Shell20.1%0.2%
Biconnected Component10.1%0.0%
Eulerian Circuit10.1%0.0%
Rejection Sampling10.1%0.0%
Sort10.1%0.0%

Practice a Microsoft interview

Take a realistic AI-led mock interview with questions Microsoft actually asks, with live voice and real feedback.

Start a mock interview

Your first interview is free · no credit card required