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

Method permutation

java/Chapter 1/Question1_3/Question.java:10–12  ·  view source on GitHub ↗
(String s, String t)

Source from the content-addressed store, hash-verified

8 }
9
10 public static boolean permutation(String s, String t) {
11 return sort(s).equals(sort(t));
12 }
13
14 public static boolean anagram(String s, String t) {
15 if (s.length() != t.length())

Callers 1

mainMethod · 0.95

Calls 1

sortMethod · 0.95

Tested by

no test coverage detected