MCPcopy Index your code
hub / github.com/careercup/ctci / main

Method main

java/Chapter 1/Question1_3/Question.java:44–53  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

42 }
43
44 public static void main(String[] args) {
45 String[][] pairs = {{"apple", "papel"}, {"carrot", "tarroc"}, {"hello", "llloh"}};
46 for (String[] pair : pairs) {
47 String word1 = pair[0];
48 String word2 = pair[1];
49 boolean anagram = permutation(word1, word2);
50 System.out.println(word1 + ", " + word2 + ": " + anagram);
51 System.out.println(anagram(word1, word2));
52 }
53 }
54}

Callers

nothing calls this directly

Calls 2

permutationMethod · 0.95
anagramMethod · 0.95

Tested by

no test coverage detected