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 386e0ac commit f032c1dCopy full SHA for f032c1d
valid-anagram/sujeong-dev.js
@@ -4,6 +4,8 @@
4
* @return {boolean}
5
*/
6
var isAnagram = function (s, t) {
7
+ if (s.length !== t.length) return false;
8
+
9
const frequencyMap = new Map();
10
11
for (const x of s) {
0 commit comments