@Test public void testKeypadPermutation() { List<String> expected = new ArrayList<>(); expected.add("AD"); expected.add("AE"); expected.add("AF"); expected.add("BD"); expected.add("BE"); expected.add("BF"); expected.add("CD"); expected.add("CE"); expected.add("CF"); Assert.assertEquals(expected, keypadPermutation(23)); expected.clear(); expected.add("A"); expected.add("B"); expected.add("C"); Assert.assertEquals(expected, keypadPermutation(12)); }
public static List<String> keypadPermutation(int num) { final List<String> perms = new ArrayList<>(); final String numSeq = String.valueOf(num); return permute(numSeq, 0, perms); }
PracticeQuestionsCh6 { public static List<String> keypadPermutation(int num) { final List<String> perms = new ArrayList<>(); final String numSeq = String.valueOf(num); return permute(numSeq, 0, perms); } }
PracticeQuestionsCh6 { public static List<String> keypadPermutation(int num) { final List<String> perms = new ArrayList<>(); final String numSeq = String.valueOf(num); return permute(numSeq, 0, perms); }  }
PracticeQuestionsCh6 { public static List<String> keypadPermutation(int num) { final List<String> perms = new ArrayList<>(); final String numSeq = String.valueOf(num); return permute(numSeq, 0, perms); }  static List<String> keypadPermutation(int num); }
PracticeQuestionsCh6 { public static List<String> keypadPermutation(int num) { final List<String> perms = new ArrayList<>(); final String numSeq = String.valueOf(num); return permute(numSeq, 0, perms); }  static List<String> keypadPermutation(int num); static final Logger LOGGER; }