We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 81ba9a5 commit c5d8b32Copy full SHA for c5d8b32
0125_validPalindrome.js
@@ -15,7 +15,7 @@ const isPalindrome = s => {
15
if (!s) return true;
16
17
const isAlphanumeric = c =>
18
- (code >= 'a'.charCodeAt() && code <= 'z'.charCodeAt()) || (code >= '0'.charCodeAt() && code <= '9'.charCodeAt());
+ (c >= 'a'.charCodeAt() && c <= 'z'.charCodeAt()) || (c >= '0'.charCodeAt() && c <= '9'.charCodeAt());
19
20
let left = 0;
21
let right = s.length - 1;
0 commit comments