Skip to content

Commit 6dfa481

Browse files
committed
0053-maximum-subarray.md Aligned the *.
1 parent 1cdef49 commit 6dfa481

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

0053-maximum-subarray.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ nums = [-2, 1, -3, 4, -1, 2, 1, -5, 4]
3737
dp = [-2, 1, -2, 4, 3, 5, 6, 1, 5]
3838
```
3939
* After analyzing the sample `dp` data, we can derive the `recurrence formula`:
40-
* `dp[i] = max(nums[i], dp[i - 1] + nums[i])`.
40+
* `dp[i] = max(nums[i], dp[i - 1] + nums[i])`.
4141
4. Determine the `dp` array's traversal order
4242
* `dp[i]` depends on `dp[i - 1]`, so we should traverse the `dp` array from left to right.
4343
5. Check the `dp` array's value

0 commit comments

Comments
 (0)