- Interview Questions
- /
- Microsoft
Microsoft LeetCode Interview Questions
Practice 54 real coding problems frequently asked in Microsoft technical interviews. Master these questions to ace your next Microsoft software engineering interview.
Top Topics at Microsoft
Ace your Microsoft interview with AI
Get real-time AI assistance during your actual interview. Invisible to screensharing.
Microsoft Interview Problems
| Problem | DifficultyDiff | Action |
|---|---|---|
Two Sum 100% | EasyE | Solve→ |
Digit Operations to Make Two Integers Equal 100% | MediumM | Solve→ |
Merge Sorted Array 92% | EasyE | Solve→ |
LRU Cache 88% | MediumM | Solve→ |
Longest Substring Without Repeating Characters 84% | MediumM | Solve→ |
Maximum Subarray 79% | MediumM | Solve→ |
Climbing Stairs 79% | EasyE | Solve→ |
Recyclable and Low Fat Products 79% | EasyE | Solve→ |
Remove Element 73% | EasyE | Solve→ |
Merge Strings Alternately 73% | EasyE | Solve→ |
Add Two Integers 73% | EasyE | Solve→ |
Add Two Numbers 66% | MediumM | Solve→ |
Median of Two Sorted Arrays 66% | HardH | Solve→ |
Palindrome Number 66% | EasyE | Solve→ |
Longest Common Prefix 66% | EasyE | Solve→ |
Best Time to Buy and Sell Stock 66% | EasyE | Solve→ |
Single Number 66% | EasyE | Solve→ |
Number of Islands 66% | MediumM | Solve→ |
Move Zeroes 66% | EasyE | Solve→ |
Subarray Sum Equals K 66% | MediumM | Solve→ |
Flood Fill 66% | EasyE | Solve→ |
Koko Eating Bananas 66% | MediumM | Solve→ |
Maximum Matrix Sum 66% | MediumM | Solve→ |
Create Hello World Function 66% | EasyE | Solve→ |
Longest Palindromic Substring 55% | MediumM | Solve→ |
Pass your interview with AI assistance
Get real-time solutions during your actual coding interview. Invisible to screensharing.
Integer to Roman 55% | MediumM | Solve→ |
4Sum 55% | MediumM | Solve→ |
Merge k Sorted Lists 55% | HardH | Solve→ |
Search in Rotated Sorted Array 55% | MediumM | Solve→ |
Spiral Matrix 55% | MediumM | Solve→ |
Jump Game 55% | MediumM | Solve→ |
Subsets II 55% | MediumM | Solve→ |
Binary Tree Maximum Path Sum 55% | HardH | Solve→ |
Longest Consecutive Sequence 55% | MediumM | Solve→ |
Copy List with Random Pointer 55% | MediumM | Solve→ |
Min Stack 55% | MediumM | Solve→ |
Two Sum II - Input Array Is Sorted 55% | MediumM | Solve→ |
Majority Element 55% | EasyE | Solve→ |
House Robber 55% | MediumM | Solve→ |
Isomorphic Strings 55% | EasyE | Solve→ |
House Robber II 55% | MediumM | Solve→ |
Alien Dictionary 55% | HardH | Solve→ |
Integer to English Words 55% | HardH | Solve→ |
Word Pattern II 55% | MediumM | Solve→ |
Permutation in String 55% | MediumM | Solve→ |
K Inverse Pairs Array 55% | HardH | Solve→ |
Rotting Oranges 55% | MediumM | Solve→ |
Remove All Adjacent Duplicates In String 55% | EasyE | Solve→ |
Flip Columns For Maximum Number of Equal Rows 55% | MediumM | Solve→ |
Check If N and Its Double Exist 55% | EasyE | Solve→ |
Pass your interview with AI assistance
Get real-time solutions during your actual coding interview. Invisible to screensharing.
Similar Companies
Explore interview questions from other companies with similar interview patterns.
Frequently Asked Questions
What LeetCode problems does Microsoft ask in interviews?
Microsoft commonly asks 54 coding problems in technical interviews, including Two Sum, Digit Operations to Make Two Integers Equal, Merge Sorted Array. The difficulty breakdown is 20 Easy, 27 Medium, and 7 Hard problems.
How should I prepare for a Microsoft coding interview?
Focus on the most frequently asked problems first, especially those with high frequency scores. Microsoft interviews typically emphasize Array and Hash Table. Practice explaining your thought process while coding.
What is the difficulty level of Microsoft coding interviews?
Based on our data, Microsoft interviews include 20 Easy (37%), 27 Medium (50%), and 7 Hard (13%) problems.
Ready to ace your Microsoft interview?
Join thousands of engineers who landed offers at top tech companies.
Get Started FreeNo credit card required