Interview Intel · Microsoft

Microsoft coding interview
questions, leaked.

192 problems reported across recent Microsoft interviews. Top patterns: array, string, hash table. The list below is what most candidates actually saw, plus the honest play if you can't grind all of it.

Founder's read

Microsoft interviews 192 distinct problems across their assessment bank, and 97 of them center on arrays. You're looking at 55 easy problems to warm up on, 109 mediums that form the real gauntlet, and 28 hards for the high bar. Two Sum, Merge Sorted Array, and Valid Parentheses are the canonical starters, but the medium tier (Longest Substring Without Repeating Characters, 3Sum, Maximum Subarray) is where most candidates lose time. Hash tables and two-pointers show up constantly. If you freeze mid-assessment on a pattern you haven't drilled, StealthCoder runs invisibly and surfaces a working solution in seconds, so you keep moving.

Tracked problems
192
Easy
55/ 29%
Medium
109/ 57%
Hard
28/ 15%

Top problems at Microsoft

leaked_problems.csv50 rows
#ProblemDiffFrequency
01Two SumEASY
100.0
02Merge Sorted ArrayEASY
83.7
03Longest Substring Without Repeating CharactersMEDIUM
79.4
04Add Two NumbersMEDIUM
78.3
05Longest Palindromic SubstringMEDIUM
75.8
06Trapping Rain WaterHARD
75.7
07Merge IntervalsMEDIUM
73.8
08Median of Two Sorted ArraysHARD
72.9
09Valid ParenthesesEASY
72.9
103SumMEDIUM
72.9
11Maximum SubarrayMEDIUM
72.9
12Group AnagramsMEDIUM
69.8
13Search in Rotated Sorted ArrayMEDIUM
68.5
14Reverse Nodes in k-GroupHARD
68.5
15Merge Two Sorted ListsEASY
68.5
16Roman to IntegerEASY
68.3
17Spiral MatrixMEDIUM
68.3
18Climbing StairsEASY
68.0
19Container With Most WaterMEDIUM
67.7
20Rotate ImageMEDIUM
67.7
21Palindrome NumberEASY
67.5
22Merge k Sorted ListsHARD
67.5
23Sort ColorsMEDIUM
65.8
24Longest Common PrefixEASY
65.8
25Remove Duplicates from Sorted ArrayEASY
64.5
26Set Matrix ZeroesMEDIUM
62.9
27Reverse IntegerMEDIUM
62.5
28Letter Combinations of a Phone NumberMEDIUM
62.5
29Word SearchMEDIUM
60.6
30Generate ParenthesesMEDIUM
60.2
31Minimum Edge Reversals So Every Node Is ReachableHARD
0.0
32Find Peak ElementMEDIUM
0.0
33Best Time to Buy and Sell StockEASY
0.0
34Move ZeroesEASY
0.0
35K-th Smallest in Lexicographical OrderHARD
0.0
36Max Consecutive OnesEASY
0.0
37Minimum Size Subarray SumMEDIUM
0.0
38Jump GameMEDIUM
59.4
39Next PermutationMEDIUM
59.0
40Remove ElementEASY
58.1
41Minimum Path SumMEDIUM
58.1
42Binary Tree Zigzag Level Order TraversalMEDIUM
57.6
43String to Integer (atoi)MEDIUM
55.6
44Validate Binary Search TreeMEDIUM
55.6
45Largest Rectangle in HistogramHARD
54.6
46Find First and Last Position of Element in Sorted ArrayMEDIUM
54.6
47Combination SumMEDIUM
54.6
48Find the Index of the First Occurrence in a StringEASY
54.6
49First Missing PositiveHARD
54.6
50Jump Game IIMEDIUM
54.0

Frequencies derived from public community-tagged interview reports. Click a row to view on LeetCode.

The hedge

You have a week, maybe less. You can't out-grind the list above. StealthCoder runs invisibly during the actual Microsoft OA. The proctor cannot see it. Screen share cannot detect it. Made by a working Amazon engineer who got tired of watching qualified friends bomb OAs they'd solve cold in an IDE.

Get StealthCoder
Topic distribution
What this means

Arrays dominate at 97 problems, meaning 50 percent of the bank is array-focused. Strings come second at 43, hash tables at 36. Two-pointers and dynamic programming tie at 30 and 31 respectively, which signals Microsoft loves optimization and multi-pass solutions. The medium difficulty spread (109 out of 192) means you'll spend most of your interview time there, not on easy wins. Trapping Rain Water and Median of Two Sorted Arrays are the hard outliers that require binary search or stack intuition. The real prep bottleneck is drilling two-pointer and hash-table patterns until they're automatic, because combining those two on a string or array problem under time pressure is where most candidates stall. StealthCoder is your hedge for the live moment when a sliding-window or monotonic-stack variant throws you off.

Companies with similar patterns

If you prepped for Microsoft, these companies recycle ~60% of the same topics.

The honest play

You've seen the list. Now make sure you pass Microsoft.

Memorizing every problem above in a week is a fantasy. StealthCoder is the hedge: an AI overlay that's invisible during screen share. It reads the problem on screen and surfaces a working solution in under 2 seconds. Made by a working Amazon engineer who got tired of watching qualified friends bomb OAs they'd solve cold in an IDE. Works on HackerRank, CodeSignal, CoderPad, and Karat.

Microsoft interview FAQ

How many array problems should I solve before the Microsoft assessment?+

Microsoft has 97 array problems in their bank, and 50 of them sit in the medium range. Aim to solve at least 20-25 medium array problems, focusing on two-pointers and sliding window first (those appear across multiple difficulty levels). Two Sum and Merge Sorted Array are your easy anchors, then graduate to 3Sum, Maximum Subarray, and Trapping Rain Water.

Is hash table fluency enough for Microsoft, or do I need dynamic programming too?+

You need both. Hash tables appear in 36 problems, dynamic programming in 30. Hash tables show up earlier and more frequently in screening rounds, so master those first (Group Anagrams, Longest Substring Without Repeating Characters). But 16 percent of the bank is dynamic programming, and some mediums blend them, so don't skip DP entirely.

What should I study first for a Microsoft assessment?+

Arrays and two-pointers. Half the bank is arrays (97 problems), and two-pointers unlock 31 of them with O(n) solutions instead of brute force. Start with Merge Sorted Array and 3Sum, then move to Longest Palindromic Substring and Trapping Rain Water. You'll build the intuition that carries you through harder mediums.

Do I need to solve all 192 problems to pass Microsoft?+

No. You'll see maybe 2-3 problems in an actual assessment. Focus on the top topics: array (97), string (43), and hash table (36) cover about 80 percent of the bank. Hit 30-40 medium problems across those three categories and you're well-prepped. The 28 hard problems are a stretch goal, not a requirement.

Are linked-list and tree problems common in Microsoft interviews?+

Less common than arrays and strings, but they do appear. Linked list problems (18 total) and tree problems (18 total) cluster in the medium range. Merge Two Sorted Lists and Reverse Nodes in k-Group are representative. If you're short on time, defer heavy tree drilling and focus on arrays, two-pointers, and hash tables first.

Problem frequencies sourced from public community-maintained interview-report repos. Problems, ratings, and trademarks are property of LeetCode and Microsoft. StealthCoder is not affiliated with Microsoft.