LeetCode 128: Longest Consecutive Sequence
Date: January 21, 2026Category: Arrays | HashSetsTime Taken: 30 minutesDifficulty: Medium
Problem Statement
Given an unsorted array of integers nums, return the length of the longest consecutive elements sequence.
You must write an algorithm that ru...
varchasvh.hashnode.dev4 min read