标签:com 记录 java leetcode desc discus rip cep top
https://leetcode.com/problems/longest-consecutive-sequence/?tab=Description
开始的时候,没有思路。看了下面这个,也有并查集的感觉,每个数字记录一下最后一个元素。都指向一个。
https://discuss.leetcode.com/topic/6148/my-really-simple-java-o-n-solution-accepted
标签:com 记录 java leetcode desc discus rip cep top
原文地址:http://www.cnblogs.com/charlesblc/p/6459485.html