We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
*
1 parent 1cdef49 commit 6dfa481Copy full SHA for 6dfa481
0053-maximum-subarray.md
@@ -37,7 +37,7 @@ nums = [-2, 1, -3, 4, -1, 2, 1, -5, 4]
37
dp = [-2, 1, -2, 4, 3, 5, 6, 1, 5]
38
```
39
* After analyzing the sample `dp` data, we can derive the `recurrence formula`:
40
- * `dp[i] = max(nums[i], dp[i - 1] + nums[i])`.
+ * `dp[i] = max(nums[i], dp[i - 1] + nums[i])`.
41
4. Determine the `dp` array's traversal order
42
* `dp[i]` depends on `dp[i - 1]`, so we should traverse the `dp` array from left to right.
43
5. Check the `dp` array's value
0 commit comments