LeetCode - Longest Consecutive Subsequence
Problem statement
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.
Problem statement taken from: https://leetcode.com/problems/longest-consec...
alkesh26.hashnode.dev5 min read