2020年6月6日

摘要: 地址 https://leetcode-cn.com/problems/longest-consecutive-sequence/ 给定一个未排序的整数数组,找出最长连续序列的长度。 要求算法的时间复杂度为 O(n)。 示例: 输入: [100, 4, 200, 1, 3, 2] 输出: 4 解释: 阅读全文
posted @ 2020-06-06 20:46 itdef 阅读(186) 评论(0) 推荐(0)

导航