Microsoft Questions
Here are the LeetCode questions for Microsoft.
Total: 1401
Easy: 387
Medium: 790
Hard: 224
Progress: 0%
Topic Frequency Analysis
All Topics
| Rank | Topic | Frequency | Percentage |
|---|---|---|---|
| 1 | Array | 683 | |
| 2 | String | 330 | |
| 3 | Hash Table | 283 | |
| 4 | Dynamic Programming | 217 | |
| 5 | Math | 209 | |
| 6 | Sorting | 175 | |
| 7 | Depth-First Search | 151 | |
| 8 | Greedy | 146 | |
| 9 | Tree | 122 | |
| 10 | Binary Search | 117 | |
| 11 | Breadth-First Search | 116 | |
| 12 | Two Pointers | 113 | |
| 13 | Binary Tree | 104 | |
| 14 | Matrix | 96 | |
| 15 | Database | 90 | |
| 16 | Bit Manipulation | 82 | |
| 17 | Stack | 78 | |
| 18 | Design | 67 | |
| 19 | Heap (Priority Queue) | 65 | |
| 20 | Graph Theory | 61 | |
| 21 | Simulation | 60 | |
| 22 | Prefix Sum | 58 | |
| 23 | Backtracking | 57 | |
| 24 | Sliding Window | 57 | |
| 25 | Linked List | 49 | |
| 26 | Counting | 49 | |
| 27 | Divide and Conquer | 35 | |
| 28 | Enumeration | 35 | |
| 29 | Recursion | 33 | |
| 30 | Union-Find | 30 | |
| 31 | Trie | 29 | |
| 32 | Binary Search Tree | 28 | |
| 33 | Monotonic Stack | 25 | |
| 34 | Queue | 22 | |
| 35 | Ordered Set | 20 | |
| 36 | Topological Sort | 19 | |
| 37 | Memoization | 19 | |
| 38 | Segment Tree | 17 | |
| 39 | Number Theory | 17 | |
| 40 | Hash Function | 15 | |
| 41 | Binary Indexed Tree | 14 | |
| 42 | Interactive | 14 | |
| 43 | Bitmask | 14 | |
| 44 | Rolling Hash | 12 | |
| 45 | Game Theory | 11 | |
| 46 | Geometry | 10 | |
| 47 | String Matching | 10 | |
| 48 | Combinatorics | 10 | |
| 49 | Data Stream | 9 | |
| 50 | Brainteaser | 8 | |
| 51 | Randomized | 8 | |
| 52 | Shortest Path | 8 | |
| 53 | Merge Sort | 7 | |
| 54 | Counting Sort | 7 | |
| 55 | Doubly-Linked List | 6 | |
| 56 | Bucket Sort | 6 | |
| 57 | Iterator | 6 | |
| 58 | Sweep Line | 4 | |
| 59 | Monotonic Queue | 4 | |
| 60 | Suffix Array | 3 | |
| 61 | Quickselect | 3 | |
| 62 | Probability and Statistics | 3 | |
| 63 | Concurrency | 2 | |
| 64 | Radix Sort | 2 | |
| 65 | Eulerian Circuit | 2 | |
| 66 | Reservoir Sampling | 1 | |
| 67 | Rejection Sampling | 1 | |
| 68 | Shell | 1 | |
| 69 | Minimum Spanning Tree | 1 | |
| No. | Question Title | Link | Difficulty | Solved |
|---|---|---|---|---|
| 1 | Maximum Capacity Within Budget | Visit | Medium | |
| 2 | Count Residue Prefixes | Visit | Easy | |
| 3 | Count Routes to Climb a Rectangular Grid | Visit | Hard | |
| 4 | Maximum Subgraph Score in a Tree | Visit | Hard | |
| 5 | Stable Subarrays With Equal Boundary and Interior Sum | Visit | Medium | |
| 6 | Restricted | Restricted | Hard | |
| 7 | Restricted | Restricted | Hard | |
| 8 | Restricted | Restricted | Hard | |
| 9 | Restricted | Restricted | Hard | |
| 10 | Restricted | Restricted | Hard | |
| 11 | Restricted | Restricted | Hard | |
| 12 | Restricted | Restricted | Hard | |
| 13 | Restricted | Restricted | Hard | |
| 14 | Restricted | Restricted | Hard | |
| 15 | Restricted | Restricted | Hard |
Log in to access all 1401 questions for free!
Log InFrequently Asked Questions
Common questions about Microsoft interviews