LeetCode Hot 100 · 中等 · 并查集、数组、哈希表
给定一个未排序的整数数组 nums,找出数字连续的最长序列的长度(序列元素在原数组中不要求相邻)。
在 RagCodes 上用 Python / C++ / Java 在线编写并提交,核心代码模式与 ACM 模式均可评测。