Skip to content

Commit f9d12c0

Browse files
authored
Update README.md
1 parent 5be6d5c commit f9d12c0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,5 @@ class Solution(object):
6262
Rewritten instruction: Find the maximum sum of consecutive elements of the array.
6363

6464
Main intuition: If the current element will make the sum of the rest elements of the array smaller, than it would be without it, then skip it. Our question is basically:
65-
$$\textrm{nums[i]} + \textrm{sum(nums[i+1:)} > \text{sum(nums[i+1:)}$$
65+
$$\textrm{nums}[i] + \sum \textrm{nums}[i+1:] > \sum \textrm{nums}[i+1:]$$
66+

0 commit comments

Comments
 (0)