128. Longest Consecutive Sequence
Given an unsorted array of integers nums, return the length of the longest consecutive elements sequence.
You must write an algorithm that runs in O(n) time.
- new solution update 2022.02.25
c++
1 | class Solution { |
c++
1 | class Solution { |
c++
1 | class Solution { |