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 bdf08b0 commit 7c5c3cfCopy full SHA for 7c5c3cf
valid-anagram/wogha95.js
@@ -0,0 +1,11 @@
1
+// TC: O(N * log N)
2
+// SC: O(N)
3
+
4
+/**
5
+ * @param {string} s
6
+ * @param {string} t
7
+ * @return {boolean}
8
+ */
9
+var isAnagram = function(s, t) {
10
+ return s.split('').sort().join('') === t.split('').sort().join('');
11
+};
0 commit comments