Deep Dive
Longest Consecutive Sequence
128. Longest Consecutive Sequence · Hashing · 30 of 78
1/8
Longest run, no sorting
In this lessonStep 1 of 8 · ← → keys
The question
Find the length of the longest consecutive sequence in O(n).
128. Longest Consecutive Sequence · Hashing · 30 of 78
Longest run, no sorting
Find the length of the longest consecutive sequence in O(n).