Longest Consecutive Sequence

#128
Medium
Array & Hashing
O(n)
O(n)
Google
Facebook
Amazon
View on LeetCode

Problem Description

Given an unsorted array of integers nums, return the length of the longest consecutive elements sequence.