@Test(timeout = 1000) public void randomTest() { Random r = new Random(); for (int idx = 0; idx < 10; idx++) { int[] in = new int[700]; int base = 200 / ((1 + idx) * (1 + idx)); for (int i = 0; i < in.length; i++) { in[i] = -base + r.nextInt(2 * base); } Assert.assertEquals(expect(in), ThreeSum.solve(in)); } }
public static int solve(int[] nums) { return -1; }
ThreeSum { public static int solve(int[] nums) { return -1; } }
ThreeSum { public static int solve(int[] nums) { return -1; }  }
ThreeSum { public static int solve(int[] nums) { return -1; }  static int solve(int[] nums); }
ThreeSum { public static int solve(int[] nums) { return -1; }  static int solve(int[] nums);  }