Skip to content

Commit 0be0ea2

Browse files
authored
Update maximum-sum-of-3-non-overlapping-subarrays.py
1 parent e977e93 commit 0be0ea2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/maximum-sum-of-3-non-overlapping-subarrays.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def maxSumOfThreeSubarrays(self, nums, k):
3535
left_pos = [0] * n
3636
total = accu[k]-accu[0]
3737
for i in xrange(k, n):
38-
if accu[i+1] - accu[i+1-k] > total:
38+
if accu[i+1]-accu[i+1-k] > total:
3939
left_pos[i] = i+1-k
4040
total = accu[i+1]-accu[i+1-k]
4141
else:

0 commit comments

Comments
 (0)