Back to Home
Dynamic Programming
Dynamic Programming (DP) caches overlapping subproblems to avoid recomputation.
Key Ideas
- Define a state (what does
dp[i]represent?). - Write a transition (how to compute
dp[i]from earlier states). - Choose top-down (memo) or bottom-up (tabulation).
Practice Problems
Climbing Stairs
LeetCodeEasy
Practice this problem with interactive visualization.
Start Solving
House Robber
LeetCodeMedium
Practice this problem with interactive visualization.
Start Solving
Coin Change
LeetCodeMedium
Practice this problem with interactive visualization.
Start Solving
Longest Increasing Subsequence
LeetCodeMedium
Practice this problem with interactive visualization.
Start Solving