dynamic-programing
模式
Pattern
Dynamic Programming (DP)
Problem solving approach:
- Define subproblems
- Implement parts that need to be executed repeatedly to solve subproblems
- Identify and solve boundary conditions
Classic examples:
- Knapsack Problem
- Longest Common Subsequence (LCS)
- Matrix Chain Multiplication
- LeetCode Coin Change
- All-Pairs Shortest Path in Graphs