@Test public void randomTest() { int N = 10000; for (int i = 0; i < 500; i++) { if (i % 100 == 99) N <<= 1; int[] arr = Shuffler.getRandomArray(N, -N, N); Assert.assertEquals(expect(arr, 0), TwoSum.solve(arr, 0)); System.out.println("pass " + N); } }
public static boolean solve(int[] arr, int tar) { return false; }
TwoSum { public static boolean solve(int[] arr, int tar) { return false; } }
TwoSum { public static boolean solve(int[] arr, int tar) { return false; }  }
TwoSum { public static boolean solve(int[] arr, int tar) { return false; }  static boolean solve(int[] arr, int tar); }
TwoSum { public static boolean solve(int[] arr, int tar) { return false; }  static boolean solve(int[] arr, int tar);  }