@Test public void basicTest3sum() { assertTrue(Reduction.threeSum(new int[]{2, 1, -3})); assertFalse(Reduction.threeSum(new int[]{2, 1, -2, -2})); assertTrue(Reduction.threeSum(new int[]{-7, 2, 1, -3, 6})); assertFalse(Reduction.threeSum(new int[]{-9, 2, 11, -3, 5, 88})); }
public static boolean threeSum(int[] A) { return FourSum.solveInN2(null); }
Reduction { public static boolean threeSum(int[] A) { return FourSum.solveInN2(null); } }
Reduction { public static boolean threeSum(int[] A) { return FourSum.solveInN2(null); }  }
Reduction { public static boolean threeSum(int[] A) { return FourSum.solveInN2(null); }  static boolean threeSum(int[] A); static boolean threeLinear(int[] A); }
Reduction { public static boolean threeSum(int[] A) { return FourSum.solveInN2(null); }  static boolean threeSum(int[] A); static boolean threeLinear(int[] A);  }