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 c6f7608 commit 8e138a4Copy full SHA for 8e138a4
valid-palindrome/froggy1014.js
@@ -1,8 +1,5 @@
1
-/**
2
- * @param {string} s
3
- * @return {boolean}
4
- */
5
-
+// Time Complexity O(n)
+// Space Complexity O(n)
6
var isPalindrome = function (s) {
7
const str = s.replace(/[^a-zA-Z0-9]/g, "").toLowerCase();
8
let left = 0;
0 commit comments