【Java-ZooKeeper】视频学习笔记
public List<List<Integer>> threeSum(int[] nums) { int n=nums.length; Arrays.sort(nums); // 进行排序 List<List<Integer>> res = new ArrayList<>(); for(int i=0;i<n;i++){ // 枚举第1个数字 if(i>0&&nums[i]==nums[i-1])
复制链接