All the problems with the tag "hash-set".
Given an unsorted array of integers, find the length of the longest consecutive elements sequence with an O(n) time complexity algorithm.