排序 -> 双指针。 ``` javapublic class Solution { public ArrayList<ArrayList<integer>> threeSum(int[] nums) { if (nums == null || nums.length == 0) return new ArrayList<>();</integer> Arrays.sort(nums); ArrayList<ArrayList<Integer>> ans = new ArrayList<>(); int...