Also reported as Longest Consecutive Sequence (LeetCode 128) Variant
A oa question, reconstructed from 2 candidate reports. Sign in to read the write-up.