Skip to content

Commit 97aec26

Browse files
authored
Update longest-well-performing-interval.py
1 parent f4fefcf commit 97aec26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/longest-well-performing-interval.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def longestWPI(self, hours):
1515
result = i+1
1616
elif accu-1 in lookup:
1717
# lookup[accu-1] is the leftmost idx with smaller accu,
18-
# because from 1 to some positive k,
18+
# because for i from 1 to some positive k,
1919
# lookup[accu-i] is a strickly increasing sequence
2020
result = max(result, i-lookup[accu-1])
2121
lookup.setdefault(accu, i)

0 commit comments

Comments
 (0)