Longest Consecutive Sequence — JavaScript medium interview problem
Given an unsorted array of integers `nums`, return the length of the longest consecutive elements sequence. Aim for O(n).
Tags: hashset
Practice this Arrays problem free in the JS Interview Playground with automated tests and unlockable solutions.