DIY: Longest Consecutive Sequence
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 ...
Create a free account to view this lesson.
By signing up, you agree to Educative's Terms of Service and Privacy Policy