We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 63adcb0 commit 73efe53Copy full SHA for 73efe53
valid-anagram/dohee789.java
@@ -0,0 +1,19 @@
1
+/*
2
+https://leetcode.com/problems/valid-anagram/description/
3
+ */
4
+class Solution {
5
+ public boolean isAnagram(String s, String t) {
6
+ if (s.length() != t.length()) return false;
7
+
8
+ char a[] = s.toCharArray();
9
+ char b[] = t.toCharArray();
10
11
+ Array.sort(a);
12
+ Array.sort(b);
13
14
+ returnArray.equals(a,b);
15
+ }
16
+}
17
18
19
0 commit comments