@Test public void randomTest3Linear() { int N = 5; for (int i = 0; i < 1000; i++) { int m = i % 100; if (m == 99) N <<= 1; int[] input = Shuffler.getRandomArray(N, -m * m, m * m); assertEquals(Arrays.toString(input), threeLinear(input), Reduction.threeLinear(input)); } }
public static boolean threeLinear(int[] A) { return threeSumNotDistinct(null); }
Reduction { public static boolean threeLinear(int[] A) { return threeSumNotDistinct(null); } }
Reduction { public static boolean threeLinear(int[] A) { return threeSumNotDistinct(null); }  }
Reduction { public static boolean threeLinear(int[] A) { return threeSumNotDistinct(null); }  static boolean threeSum(int[] A); static boolean threeLinear(int[] A); }
Reduction { public static boolean threeLinear(int[] A) { return threeSumNotDistinct(null); }  static boolean threeSum(int[] A); static boolean threeLinear(int[] A);  }