...
/DIY: Longest Consecutive Sequence
DIY: Longest Consecutive Sequence
Solve the interview question "Longest Consecutive Sequence" yourself in this lesson.
We'll cover the following...
Problem statement
Given an unsorted array of integers, find the length of the longest consecutive elements sequence.
Input
The input will be an array of ...