@Test(timeout = 1500) public void randomTest() { int N = 3; Random r = new Random(); for (int strLen = 5; strLen < 100; strLen++) { if (strLen % 10 == 9) N <<= 1; String[] input = new String[N]; for (int i = 0; i < N; i++) { input[i] = RandomStringBuilder.randomStringBase62(strLen); } if (r.nextBoolean()) { int k = r.nextInt(strLen); int idx = 1 + r.nextInt(N - 1); input[idx] = input[0].substring(k) + input[0].substring(0, k); Assert.assertTrue(CyclicRotations.solve(input)); } else { Assert.assertFalse(CyclicRotations.solve(input)); } } }
public static boolean solve(String[] inputs) { return false; }
CyclicRotations { public static boolean solve(String[] inputs) { return false; } }
CyclicRotations { public static boolean solve(String[] inputs) { return false; }  }
CyclicRotations { public static boolean solve(String[] inputs) { return false; }  static boolean solve(String[] inputs); }
CyclicRotations { public static boolean solve(String[] inputs) { return false; }  static boolean solve(String[] inputs);  }