Skip to main content
grasp.study
Log in
Try it for free
Back to course
👋
Welcome to a Grasp lesson
Create a free account
to keep studying and create your own study path.
Software engineer interview prep course
·
Module 4
Core Dynamic Programming Patterns
1
Dynamic Programming for Unbounded Knapsack-like Problems
Solve unbounded choice problems using DP (e.g., Coin Change, Rod Cutting).
2
0/1 Knapsack and Its Variations
Solve 0/1 knapsack problems and its variations (e.g., subset sum, partition problems).
3
Solving Sequence Comparison with 2D Dynamic Programming
Solve sequence comparison problems with 2D DP (e.g., Longest Common Subsequence, Edit Distance).
4
DP for Palindromic Subsequences
Apply DP to string-based problems involving palindromes (e.g., Longest Palindromic Subsequence).
5
Interval DP: Burst Balloons and Matrix Chain Multiplication
Apply interval DP to problems like Burst Balloons or Matrix Chain Multiplication.
6
Bitmask Dynamic Programming
Apply bitmask DP to problems with small state spaces (e.g., Travelling Salesman).
7
Tree DP: Canonical Problems
Solve canonical tree DP problems (e.g., House Robber III, Diameter of a Binary Tree).
Previous module
Dynamic Programming Fundamentals
Next module
Hard-Level Coding Problem Strategies