...

/

DIY: Longest Consecutive Sequence

DIY: Longest Consecutive Sequence

Solve the interview question "Longest Consecutive Sequence" in this lesson.

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 ...