Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
luzhipeng committed Nov 10, 2019
1 parent 267992d commit e346eae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion problems/1186.maximum-subarray-sum-with-one-deletion.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ https://leetcode.com/problems/maximum-subarray-sum-with-one-deletion/
- 一层遍历, 建立r数组,r[i]表示从右边开始的以arr[i]结尾的subArraySum的最大值
- 一层遍历, 计算 l[i - 1] + r[i + 1] 的最大值
> l[i - 1] + r[i + 1]的含义就是删除arr[i]的子数组最大值
- 上面的上个步骤得到了删除一个的子数组最大值, 不删除的只需要在上面循环顺便计算一下即可
- 上面的这个步骤得到了删除一个的子数组最大值, 不删除的只需要在上面循环顺便计算一下即可



Expand Down

0 comments on commit e346eae

Please sign in to comment.