•CODING INTERVIEW QUESTIONS
Microsoft Coding Interview Questions (DSA)
50 DSA problems sourced from real Microsoft interviews
Microsoft Coding Interview Questions
| Problem | Difficulty | Tags |
|---|---|---|
| Easy | ArrayHash Table | |
| Medium | Linked ListMathRecursion | |
| Medium | Two PointersStringDynamic Programming | |
| Medium | ArrayDivide and ConquerDynamic Programming | |
| Medium | ArraySortingQuicksort | |
| Medium | ArrayTwo PointersSorting | |
| Remove Duplicates from Sorted Array | Easy | ArrayTwo Pointers |
| Letter Combinations of a Phone Number | Medium | Hash TableStringBacktracking |
| Medium | ArrayHash TableUnion-Find | |
| Medium | ArrayDynamic ProgrammingBreadth-First Search | |
| Smallest Divisible Digit Product I | Easy | MathEnumeration |
| Easy | Linked ListRecursion | |
| Hard | ArrayBinary SearchDivide and Conquer | |
| Set Mismatch | Easy | ArrayHash TableBit Manipulation |
| Rotate Array | Medium | ArrayMathTwo Pointers |
| Concatenation of Array | Easy | ArraySimulation |
| Easy | StringStackBracket Sequences | |
| Longest Substring of One Repeating Character | Hard | ArrayStringSegment Tree |
| Move Zeroes | Easy | ArrayTwo Pointers |
| Palindrome Number | Easy | Math |
| Consecutive Numbers Sum | Hard | MathEnumeration |
| Find the Largest Almost Missing Integer | Easy | ArrayHash Table |
| Minimum Difficulty of a Job Schedule | Hard | ArrayDynamic Programming |
| Longest Repeating Character Replacement | Medium | Hash TableStringSliding Window |
| Easy | ArrayDynamic Programming | |
| Remove K Digits | Medium | StringStackGreedy |
| Medium | ArrayBreadth-First SearchMatrix | |
| Medium | ArrayHash TablePrefix Sum | |
| Smallest Missing Multiple of K | Easy | ArrayHash Table |
| Create Hello World Function | Easy | |
| Maximum Value at a Given Index in a Bounded Array | Medium | MathBinary SearchGreedy |
| Medium | Hash TableLinked ListDesign | |
| Merge Sorted Array | Easy | ArrayTwo PointersSorting |
| Minimum Edge Reversals So Every Node Is Reachable | Hard | Dynamic ProgrammingDepth-First SearchBreadth-First Search |
| Longest Palindromic Subsequence | Medium | StringDynamic Programming |
| Copy List with Random Pointer | Medium | Hash TableLinked List |
| Medium | ArrayDynamic Programming | |
| Next Greater Element II | Medium | ArrayStackMonotonic Stack |
| Minimum Window Substring | Hard | Hash TableStringSliding Window |
| Minimum Operations to Reduce an Integer to 0 | Medium | Dynamic ProgrammingGreedyBit Manipulation |
| Sliding Window Maximum | Hard | ArrayQueueSliding Window |
| Medium | Hash TableStringSliding Window | |
| Hard | ArrayStringDepth-First Search | |
| Range Sum Query - Immutable | Easy | ArrayDesignPrefix Sum |
| Binary Tree Preorder Traversal | Easy | StackTreeDepth-First Search |
| Medium | ArrayHash TableDivide and Conquer | |
| Largest Rectangle in Histogram | Hard | ArrayStackMonotonic Stack |
| Medium | ArrayTwo PointersGreedy | |
| Roman to Integer | Easy | Hash TableMathString |
| Next Permutation | Medium | ArrayTwo Pointers |
Difficulty Breakdown
Top Data Structures & Patterns
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 →