mirror of
https://github.com/krahets/hello-algo.git
synced 2026-08-28 02:47:14 +00:00
build
This commit is contained in:
@@ -43,7 +43,7 @@ comments: true
|
||||
|
||||
状态 $[i, j]$ 对应的子问题:**将 $s$ 的前 $i$ 个字符更改为 $t$ 的前 $j$ 个字符所需的最少编辑步数**。
|
||||
|
||||
至此,得到一个尺寸为 $(i+1) \times (j+1)$ 的二维 $dp$ 表。
|
||||
至此,得到一个尺寸为 $(n+1) \times (m+1)$ 的二维 $dp$ 表。
|
||||
|
||||
**第二步:找出最优子结构,进而推导出状态转移方程**
|
||||
|
||||
|
||||
Reference in New Issue
Block a user