Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c5d8b32

Browse files
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

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /