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 6720ea5 commit 38c6addCopy full SHA for 38c6add
valid-anagram/mike2ox.ts
@@ -0,0 +1,4 @@
1
+function isAnagram(s: string, t: string): boolean {
2
+ if (s.length !== t.length) return false;
3
+ return s.split("").sort().join() === t.split("").sort().join();
4
+}
0 commit comments