Google Dynamic Programming Coding Interview Questions
49 dynamic programming coding problems are tagged as asked at Google in interviews and online assessments reported by candidates. By difficulty they split into 11 basic, 20 intermediate and 18 advanced. The topics they most often combine with are Array, String, Hash Table, Math.
Reported questions change over time and are not a guarantee of what you will be asked, so use the list to see which patterns Google 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)
- Split Array Into Consecutive Subsequences (Intermediate)
- 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)
- Maximum Alternating Subsequence Sum (Intermediate)
- Count Ways to Distribute Candies (Intermediate)
- Maximum Value of K Coins From Piles (Advanced)
- Count Ways to Build Good Strings (Intermediate)
- Count Special Subsequences (Advanced)
- Number of Matching Subsequences (Intermediate)
- Furthest Building You Can Reach (Intermediate)
- Increasing Triplet Subsequence (Intermediate)
- Arranging Coins (Basic)
- N-Queens Count (Advanced)
- Max Length of Concatenated Unique Characters (Intermediate)
- Detect Squares (Intermediate)
- Memory Allocator (Intermediate)
- Collect Coins in a Tree (Advanced)
- Paint House III (Advanced)
- One Edit Distance (Basic)
- Longest Arithmetic Subsequence of Given Difference (Intermediate)
- Minimum Cost Tree From Leaf Values (Intermediate)
- Unique Length-3 Palindromic Subsequences (Intermediate)
- Minimum Cost to Connect Two Groups of Points (Advanced)
- Longest Subsequence With Limited Sum (Basic)
- Shortest Impossible Sequence of Rolls (Advanced)
- Minimum Window Subsequence (Advanced)
- Longest Uncommon Subsequence II (Intermediate)
- Build Array From Permutation (Basic)
- Number of Ways to Split Array (Basic)
- Constrained Subsequence Sum (Advanced)
Related
- Google coding interview questions
- Dynamic Programming problems
- Google basic problems
- Google intermediate problems
- Google advanced problems
- Company interview roadmaps
- All interview guides
Frequently asked questions
How should I use the Google 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 Google 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.