We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca2017a commit 3f815c0Copy full SHA for 3f815c0
valid-anagram/taekwon-dev.java
@@ -0,0 +1,11 @@
1
+class Solution {
2
+ public boolean isAnagram(String s, String t) {
3
+ char[] sChars = s.toCharArray();
4
+ char[] tChars = t.toCharArray();
5
+
6
+ Arrays.sort(sChars);
7
+ Arrays.sort(tChars);
8
9
+ return Arrays.equals(sChars, tChars);
10
+ }
11
+}
0 commit comments