定义
https://en.wikipedia.org/wiki/Dynamic_programming
https://zh.wikipedia.org/wiki/动态规划
- "Simplifying a complicated problem by breaking it down into simpler subproblems"(in a recursive manager)
- Divide & Conquer + Optimal substructure (分治+最优子结构)
DP 顺推模板
function DP():
dp = [][] # 二维情况
for i = 0