CODING INTERVIEW QUESTIONS

Microsoft Coding Interview Questions (DSA)

50 DSA problems sourced from real Microsoft interviews

Microsoft Coding Interview Questions

ProblemDifficultyTags
Easy
ArrayHash Table
Medium
Linked ListMathRecursion
Medium
Two PointersStringDynamic Programming
Medium
ArrayDivide and ConquerDynamic Programming
Medium
ArraySortingQuicksort
Medium
ArrayTwo PointersSorting
Remove Duplicates from Sorted ArrayEasy
ArrayTwo Pointers
Letter Combinations of a Phone NumberMedium
Hash TableStringBacktracking
Medium
ArrayHash TableUnion-Find
Medium
ArrayDynamic ProgrammingBreadth-First Search
Smallest Divisible Digit Product IEasy
MathEnumeration
Easy
Linked ListRecursion
Hard
ArrayBinary SearchDivide and Conquer
Set MismatchEasy
ArrayHash TableBit Manipulation
Rotate ArrayMedium
ArrayMathTwo Pointers
Concatenation of ArrayEasy
ArraySimulation
Easy
StringStackBracket Sequences
Longest Substring of One Repeating CharacterHard
ArrayStringSegment Tree
Move ZeroesEasy
ArrayTwo Pointers
Palindrome NumberEasy
Math
Consecutive Numbers SumHard
MathEnumeration
Find the Largest Almost Missing IntegerEasy
ArrayHash Table
Minimum Difficulty of a Job ScheduleHard
ArrayDynamic Programming
Longest Repeating Character ReplacementMedium
Hash TableStringSliding Window
Easy
ArrayDynamic Programming
Remove K DigitsMedium
StringStackGreedy
Medium
ArrayBreadth-First SearchMatrix
Medium
ArrayHash TablePrefix Sum
Smallest Missing Multiple of KEasy
ArrayHash Table
Create Hello World FunctionEasy
Maximum Value at a Given Index in a Bounded ArrayMedium
MathBinary SearchGreedy
Medium
Hash TableLinked ListDesign
Merge Sorted ArrayEasy
ArrayTwo PointersSorting
Minimum Edge Reversals So Every Node Is ReachableHard
Dynamic ProgrammingDepth-First SearchBreadth-First Search
Longest Palindromic SubsequenceMedium
StringDynamic Programming
Copy List with Random PointerMedium
Hash TableLinked List
Medium
ArrayDynamic Programming
Next Greater Element IIMedium
ArrayStackMonotonic Stack
Minimum Window SubstringHard
Hash TableStringSliding Window
Minimum Operations to Reduce an Integer to 0Medium
Dynamic ProgrammingGreedyBit Manipulation
Sliding Window MaximumHard
ArrayQueueSliding Window
Medium
Hash TableStringSliding Window
Hard
ArrayStringDepth-First Search
Range Sum Query - ImmutableEasy
ArrayDesignPrefix Sum
Binary Tree Preorder TraversalEasy
StackTreeDepth-First Search
Medium
ArrayHash TableDivide and Conquer
Largest Rectangle in HistogramHard
ArrayStackMonotonic Stack
Medium
ArrayTwo PointersGreedy
Roman to IntegerEasy
Hash TableMathString
Next PermutationMedium
ArrayTwo Pointers

Difficulty Breakdown

Easy
17 (34%)
Medium
24 (48%)
Hard
9 (18%)

Top Data Structures & Patterns

Array
29 (58%)
Hash Table
14 (28%)
String
11 (22%)
Dynamic Programming
9 (18%)
Two Pointers
8 (16%)
Math
7 (14%)
Sorting
5 (10%)
Stack
5 (10%)

Frequently Asked Questions

What questions does Microsoft ask in coding interviews?

Microsoft coding interviews focus on Array, Backtracking, Binary Search, Binary Tree, and other data structure problems. We compiled 50 questions from real Microsoft interviews. The most common topics are Array, Backtracking, Binary Search, Binary Tree, Bit Manipulation. Filter by topic to see what comes up most often.

How many Microsoft coding interview questions are there?

InterviewSkool has 50 Microsoft coding interview questions: 17 Easy, 24 Medium, and 9 Hard. Most Microsoft interviews focus on Medium-difficulty problems, so prioritize those in your prep.

How should I prepare for Microsoft coding interviews?

Start with Medium difficulty problems. Group by topic (Array, Tree, DP) to build pattern recognition. Aim to solve 30 to 40 problems before your interview. Then practice under pressure with a mock interview.

Are Microsoft coding interview questions free?

Yes. All 50 Microsoft coding interview questions are free to browse with no sign-up required. You can filter by difficulty and topic tags. Start a mock interview with a free credit to practice under real pressure.

Practice with a Mock Interview

Simulate real Microsoft interview pressure with our AI interviewer.

Start Mock Interview →

Other Companies