Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit de874e9

Browse files
committed
Added necessary comment in largest subarr & sum code
1 parent 605fc39 commit de874e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎Pattern sliding window/largest_subarray_and_sum.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# ******* most important part starts ***********
1515
win_sum -= arr[win_start]
1616
print(f"updated win_sum: {win_sum}")
17-
win_start += 1
17+
win_start += 1# slide the window
1818
print(f"win_start: {win_start}")
1919
# ******* most important part ends ***********
2020

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /