Microsoft LeetCode Problems

54 most frequently asked LeetCode problems in Microsoft technical interviews

Difficulty breakdown: 20 Easy, 27 Medium, 7 Hard

Ace Your Microsoft Interview

Don't just study these problems — get real-time AI assistance during your actual interview with Interview Solver.

ProblemDiff
Two Sum
100%
E
Digit Operations to Make Two Integers Equal
100%
M
Merge Sorted Array
92%
E
LRU Cache
88%
M
Longest Substring Without Repeating Characters
84%
M
Maximum Subarray
79%
M
Climbing Stairs
79%
E
Recyclable and Low Fat Products
79%
E
Remove Element
73%
E
Merge Strings Alternately
73%
E
Add Two Integers
73%
E
Add Two Numbers
66%
M
Median of Two Sorted Arrays
66%
H
Palindrome Number
66%
E
Longest Common Prefix
66%
E
Best Time to Buy and Sell Stock
66%
E
Single Number
66%
E
Number of Islands
66%
M
Move Zeroes
66%
E
Subarray Sum Equals K
66%
M
Flood Fill
66%
E
Koko Eating Bananas
66%
M
Maximum Matrix Sum
66%
M
Create Hello World Function
66%
E
Longest Palindromic Substring
55%
M
Integer to Roman
55%
M
4Sum
55%
M
Merge k Sorted Lists
55%
H
Search in Rotated Sorted Array
55%
M
Spiral Matrix
55%
M
Jump Game
55%
M
Subsets II
55%
M
Binary Tree Maximum Path Sum
55%
H
Longest Consecutive Sequence
55%
M
Copy List with Random Pointer
55%
M
Min Stack
55%
M
Two Sum II - Input Array Is Sorted
55%
M
Majority Element
55%
E
House Robber
55%
M
Isomorphic Strings
55%
E
House Robber II
55%
M
Alien Dictionary
55%
H
Integer to English Words
55%
H
Word Pattern II
55%
M
Permutation in String
55%
M
K Inverse Pairs Array
55%
H
Rotting Oranges
55%
M
Remove All Adjacent Duplicates In String
55%
E
Flip Columns For Maximum Number of Equal Rows
55%
M
Check If N and Its Double Exist
55%
E
Check If a Word Occurs As a Prefix of Any Word in a Sentence
55%
E
Two Best Non-Overlapping Events
55%
M
Minimum Time to Visit a Cell In a Grid
55%
H
Final Array State After K Multiplication Operations I
55%
E