Loading problem…
You're building a progress dashboard that summarizes user activity streaks. Given a list of completed day numbers or milestone IDs, find the longest run of consecutive values.
Given an unsorted array of integers nums, return the length of the longest consecutive elements sequence.
Example 1:
Example 2: