Skip to content

Commit c5d8b32

Browse files
committed
Valid Palindrome
1 parent 81ba9a5 commit c5d8b32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

0125_validPalindrome.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const isPalindrome = s => {
1515
if (!s) return true;
1616

1717
const isAlphanumeric = c =>
18-
(code >= 'a'.charCodeAt() && code <= 'z'.charCodeAt()) || (code >= '0'.charCodeAt() && code <= '9'.charCodeAt());
18+
(c >= 'a'.charCodeAt() && c <= 'z'.charCodeAt()) || (c >= '0'.charCodeAt() && c <= '9'.charCodeAt());
1919

2020
let left = 0;
2121
let right = s.length - 1;

0 commit comments

Comments
 (0)