Skip to content

Commit

Permalink
Update longest-well-performing-interval.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
kamyu104 authored Jul 16, 2019
1 parent 97aec26 commit 531fa4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion C++/longest-well-performing-interval.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class Solution {
result = i + 1;
} else if (lookup.count(accu - 1)) {
// lookup[accu-1] is the leftmost idx with smaller accu,
// because from 1 to some positive k,
// because for i from 1 to some positive k,
// lookup[accu-i] is a strickly increasing sequence
result = max(result, i - lookup[accu - 1]);
}
Expand Down

0 comments on commit 531fa4e

Please sign in to comment.