typestatusdateslugsummarytagscategoryiconpassword创建时间Jan 7, 2025 08:55 AM给定一个未排序的整数数组 nums ,找出数字连续的最长序列(不要求序列元素在原数组中连续)的长度。请你设计并实现时间复杂度为 O(n) 的算法解决此问题。https://leetcode.cn/problems/longest-consecutive-sequence/description/?envType=study-plan-v2&envId=top-100-liked哈希使用排序哈希使用不排序哈希📎 参考无