Skip to content

Commit b5edb76

Browse files
committed
✨ [125] Runtime 61 ms Beats 94.65% Memory 44.1 MB Beats 89.16%
1 parent d76ef6b commit b5edb76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

125/solution.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* @return {boolean}
44
*/
55
const isPalindrome = (s) => {
6-
s = s.replace(/[^a-zA-Z0-9]+/g, '').trim().toLowerCase();
6+
s = s.replace(/[^a-zA-Z0-9]+/g, '').toLowerCase();
77
let l = 0, r = s.length - 1;
88

99
while (l <= r) {

0 commit comments

Comments
 (0)