0053.最大子序和(动态规划):调整笔误
This commit is contained in:
parent
e85e9e7275
commit
eb2b5e756a
|
|
@ -42,7 +42,7 @@ dp[i]只有两个方向可以推出来:
|
||||||
|
|
||||||
dp[0]应该是多少呢?
|
dp[0]应该是多少呢?
|
||||||
|
|
||||||
更具dp[i]的定义,很明显dp[0]因为为nums[0]即dp[0] = nums[0]。
|
根据dp[i]的定义,很明显dp[0]应为nums[0]即dp[0] = nums[0]。
|
||||||
|
|
||||||
4. 确定遍历顺序
|
4. 确定遍历顺序
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue