classSolution{
public List<List<Integer>>threeSum(int[] nums){
//一共三个指针,n1,n2,n3//遍历过程为: n1逐个向右,n1不动的情况下,n2/n3进行移动:1.-n1=n2+n3时,n2向右(排除向右中大小相同的).n3向左(同样排除)//2.小于的情况下,n3左移(排除相同).3.大于的情况n2右移(排除相同)
Arrays.sort(nums);
List<List<Integer>> res =newArrayList<>