find the largest subset of consecutive integers 找到最大的连续整数子集
Findthelargestsubsetofconsecutiveintegers找到最大的连续整数子集Givenanintarraywhichmightcontainduplicates,findthelargestsubsetofitwhichformasequence. Eg.{1,6,10,4,7,9,5}thenansis4,5,6,7一个简单的解法是:SortthearrayFindt