Deep Dive

Longest Consecutive Sequence

128. Longest Consecutive Sequence · Hashing · 30 of 78

1/8

Longest run, no sorting

1000412002133425
In this lessonStep 1 of 8 · ← → keys
The question

Find the length of the longest consecutive sequence in O(n).