Longest Consecutive Sequence
Interview insights are lockedSee how often this is asked and which companies asked it with Buncho Pro.Find the length of the longest run of consecutive integers in an unsorted list, in O(n) average time.
Hints
Related questions
Found a mistake in this question?