Java最长连续序列
128. 最长连续序列class Solution { public int longestConsecutive(int[] nums) { Set<Integer> set = new HashSet<>(); for(int x : nums){ set.add(x); } int res = 0; for(int x : set){