๐ข Longest Consecutive Sequence
๐ Problem Statement
Given an unsorted array of integers nums, return the length of the longest consecutive elements sequence.
You must solve the algorithm in O(n) time complexity.
๐ง Intuition
The first instinct might be to sort the array and check...
bugfreenik.hashnode.dev2 min read