Microsoft Dynamic Programming Coding Interview Questions
33 dynamic programming coding problems are tagged as asked at Microsoft in interviews and online assessments reported by candidates. By difficulty they split into 9 basic, 14 intermediate and 10 advanced. The topics they most often combine with are Array, String, Hash Table, Backtracking.
Reported questions change over time and are not a guarantee of what you will be asked, so use the list to see which patterns Microsoft tends to test. For each problem, practise explaining your approach, its time and space cost and the edge cases before you write the code; every problem opens in an editor that runs your code against test cases.
Coding problems
- Climbing Stairs (Basic)
- Coin Change (Intermediate)
- Longest Increasing Subsequence (Advanced)
- Fibonacci Number (Basic)
- Min Cost Climbing Stairs (Intermediate)
- Longest Common Subsequence (Advanced)
- Edit Distance (Advanced)
- Coin Change Ways (Advanced)
- Is Subsequence (Basic)
- Maximum Ice Cream Bars (Basic)
- Minimum Cost to Merge Stones (Advanced)
- Longest Harmonious Subsequence (Basic)
- Coin Change Ways (Intermediate)
- Longest Palindromic Subsequence (Intermediate)
- Longest Arithmetic Subsequence (Advanced)
- Maximum Subsequence Score (Advanced)
- Minimum Cost Tickets (Advanced)
- Palindrome Linked List (Basic)
- Maximum Twin Sum of a Linked List (Intermediate)
- Distribute Coins in Binary Tree (Intermediate)
- Burst Balloons (Advanced)
- Longest Ideal Subsequence (Intermediate)
- Count Ways to Build Good Strings (Intermediate)
- Number of Matching Subsequences (Intermediate)
- Increasing Triplet Subsequence (Intermediate)
- Arranging Coins (Basic)
- N-Queens Count (Advanced)
- Max Length of Concatenated Unique Characters (Intermediate)
- Memory Allocator (Intermediate)
- Unique Length-3 Palindromic Subsequences (Intermediate)
- Build Array From Permutation (Basic)
- Ways to Make a Fair Array (Intermediate)
- Number of Ways to Split Array (Basic)
Related
- Microsoft coding interview questions
- Dynamic Programming problems
- Microsoft basic problems
- Microsoft intermediate problems
- Microsoft advanced problems
- Company interview roadmaps
- All interview guides
Frequently asked questions
How should I use the Microsoft problem list?
Start with the basic problems, then the intermediate and advanced ones, and note which topics repeat. Solve each under a timer, then read the explanation.
Are these the exact Microsoft interview questions?
They are problems candidates reported being asked. Companies rotate questions, so use them to learn the patterns, not to predict the exact question.