Skip to content

Commit c7e4d2d

Browse files
committed
Paragon0107 218 solution
1 parent e0d7d23 commit c7e4d2d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

valid-anagram/paragon0107_218.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import java.util.Arrays;
2+
3+
class Solution {
4+
public static boolean isAnagram(String s, String t) {
5+
char[] s1 = s.toCharArray();
6+
char[] s2 = t.toCharArray();
7+
Arrays.sort(s1);
8+
Arrays.sort(s2);
9+
return Arrays.equals(s1, s2);
10+
}
11+
}

0 commit comments

Comments
 (0)