LeetCode

Longest Consecutive Sequence

Click here for an explanation.