Mid-levelMid (3–6 yrs)CodingPythonGoogleAmazon
Longest Consecutive Sequence
Given an unsorted array of integers, return the length of the longest consecutive elements sequence. Aim for O(n) time.
Answers use simple, clear English.
Time: O(n)Space: O(n)
Confidence
#hashset#blind75