Skip to content

Commit 41748b3

Browse files
committed
valid-anagram
1 parent bdd764a commit 41748b3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

valid-anagram/suhacs.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)