@Test public void basicTest() { Assert.assertTrue(PrefixFreeCode.isPrefixFree(new String[]{"01", "10", "0010", "1111"})); Assert.assertFalse(PrefixFreeCode.isPrefixFree(new String[]{"01", "10", "0010", "10100"})); Assert.assertFalse(PrefixFreeCode.isPrefixFree(new String[]{"10100", "01", "10", "0010"})); }
public static boolean isPrefixFree(String[] input) { return false; }
PrefixFreeCode { public static boolean isPrefixFree(String[] input) { return false; } }
PrefixFreeCode { public static boolean isPrefixFree(String[] input) { return false; }  }
PrefixFreeCode { public static boolean isPrefixFree(String[] input) { return false; }  static boolean isPrefixFree(String[] input); }
PrefixFreeCode { public static boolean isPrefixFree(String[] input) { return false; }  static boolean isPrefixFree(String[] input);  }