Meta logoMeta
Coding·40 minMembers

Longest Consecutive Sequence

Members only

LeetCode 128. Find the length of the longest consecutive-integer subsequence in an unsorted array. The trick is the O(n) hashset solution that only expands from sequence-starts.

SWE
MLE
array
hashmap
set
medium
Frequency
Low
Last asked
2026-03-17
Stage
phone-screen · onsite-coding

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...