Amazon Dynamic Programming Coding Interview Questions
39 dynamic programming coding problems are tagged as asked at Amazon in interviews and online assessments reported by candidates. By difficulty they split into 11 basic, 15 intermediate and 13 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 Amazon 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)
- Count Ways to Build Good Strings (Intermediate)
- Number of Ways to Select Buildings (Intermediate)
- Sum of Scores of Built Strings (Advanced)
- Number of Matching Subsequences (Intermediate)
- Furthest Building You Can Reach (Intermediate)
- Increasing Triplet Subsequence (Intermediate)
- Maximum Number of Removable Characters (Intermediate)
- Arranging Coins (Basic)
- N-Queens Count (Advanced)
- Detect Squares (Intermediate)
- Memory Allocator (Intermediate)
- Collect Coins in a Tree (Advanced)
- Unique Length-3 Palindromic Subsequences (Intermediate)
- Maximum Balanced Subsequence Sum (Advanced)
- Longest Subsequence With Limited Sum (Basic)
- Build Array From Permutation (Basic)
- Number of Ways to Split Array (Basic)
- Minimum Cost of Buying Candies With Discount (Basic)
Related
- Amazon coding interview questions
- Dynamic Programming problems
- Amazon basic problems
- Amazon intermediate problems
- Amazon advanced problems
- Company interview roadmaps
- All interview guides
Frequently asked questions
How should I use the Amazon 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 Amazon 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.