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 bdd764a commit 41748b3Copy full SHA for 41748b3
valid-anagram/suhacs.js
@@ -0,0 +1,7 @@
1
+function isValidAnagram(s, t) {
2
+ let temp = t;
3
+ for (char of s) {
4
+ temp = temp.replace(char, "");
5
+ }
6
+ return temp === "";
7
+}
0 commit comments