Coding interview questions

Microsoft Hard Coding Interview Questions (DSA)

The 9 hard DSA problems Microsoft has asked most in the last six months, most-asked first. Switch tabs to see the rest of the 50. Tick them off as you go.

Practice a Microsoft interview with me

I'm Alex. I'll pick 2 problems from Microsoft's list at your level and interview you like a real Microsoft round.

9hard problems
9full breakdowns
50Microsoft problems in all

By difficulty: All (50) · Easy (17) · Medium (24) · Hard (9)

Start Microsoft Mock Interview→

Topics

4.Median of Two Sorted Arrays
Full breakdownArrayBinary SearchDivide and Conquer
Hard+5▶ Mock
2213.Longest Substring of One Repeating Character
Full breakdownArrayStringSegment Tree
829.Consecutive Numbers Sum
Full breakdownMathEnumeration
1335.Minimum Difficulty of a Job Schedule
Full breakdownArrayDynamic Programming
2858.Minimum Edge Reversals So Every Node Is Reachable
Full breakdownDynamic ProgrammingDepth-First SearchBreadth-First Search
76.Minimum Window Substring
Full breakdownHash TableStringSliding Window
239.Sliding Window Maximum
Full breakdownArrayQueueSliding Window
Hard+2▶ Mock
269.Alien Dictionary
Full breakdownArrayStringDepth-First Search
Hard+2▶ Mock
84.Largest Rectangle in Histogram
Full breakdownArrayStackMonotonic Stack

Frequently Asked Questions

What hard Microsoft coding questions are most common?

InterviewSkool has 9 hard Microsoft coding questions. Focus on the top 10 to 15 most common problems for the best ROI.

How many hard questions does Microsoft have?

Microsoft has 9 hard coding questions out of 50 total. Hard problems are less common but can appear in senior-level interviews.

Are these Microsoft hard questions free?

Yes. All 9 hard Microsoft coding questions are free to browse. No sign-up required. Filter by topic and click any problem to open it on LeetCode.

Practice with a Mock Interview

Simulate real Microsoft interview pressure with our AI interviewer.

Start Mock Interview →