8000 fix triangle bug · zhoubiyu/leetcode@3801f1d · GitHub
[go: up one dir, main page]

Skip to content

Commit 3801f1d

Browse files
committed
fix triangle bug
1 parent 199e9ed commit 3801f1d

File tree

3 files changed

+1
-1
lines changed

3 files changed

+1
-1
lines changed

C++/.DS_Store

6 KB
Binary file not shown.

C++/chapDynamicProgramming.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ \subsubsection{描述}
2525
\subsubsection{分析}
2626
设状态为$f(i, j)$,表示从从位置$(i,j)$出发,路径的最小和,则状态转移方程为
2727
$$
28-
f(i,j)=\min\left\{f(i,j+1),f(i+1,j+1)\right\}+(i,j)
28+
f(i,j)=\min\left\{f(i+1,j),f(i+1,j+1)\right\}+(i,j)
2929
$$
3030

3131

C++/images/.DS_Store

6 KB
Binary file not shown.

0 commit comments

Comments
 (0)
0