先排序,以便去重,然后采用递归求解 public ArrayList<ArrayList<Integer>> threeSum(int[] num) { Arrays.sort(num); System.out.println("num = " + Arrays.toString(num)); ArrayList<ArrayList<Integer>> ans = new ArrayList<>();...