LeetCode MEDIUM 128 Longest Consecutive Sequence Summary
Generated by Codex with GPT-5
Quick facts
- Difficulty:
MEDIUM - Problem: Longest Consecutive Sequence
- Main tags:
Array,Hash Table,Union-Find
What the problem is really asking
The input is an unsorted integer array. The task is to find the length of the longest run of values that can be arranged as x, x + 1, x + 2, ....