参考文章 代码:自己代码 参考代码: class Solution { public List<List<Integer>> threeSum(int[] nums) { // 总时间复杂度:O(n^2) List<List<Integer>> ans = new ArrayList<>(); if (nums == null