Practice Problem
Longest Consecutive Sequence
Difficulty: Medium
Find the length of the longest consecutive element sequence in an unsorted array in O(n) time using a hash set.
Practice Problem
Difficulty: Medium
Find the length of the longest consecutive element sequence in an unsorted array in O(n) time using a hash set.