Skip to content

Commit 3964bc3

Browse files
authored
Update 128.longest-consecutive-sequence.md
1 parent bf14752 commit 3964bc3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

problems/128.longest-consecutive-sequence.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ class Solution:
8282
ans = 0
8383
for a in A:
8484
t = a
85+
# if 的作用是剪枝
8586
if t + 1 not in seen:
8687
while t - 1 in seen:
8788
t -= 1

0 commit comments

Comments
 (0)