Is it a palindrome?

A code exercise of about 10 minutes: read the statement, solve «Is it a palindrome?» in the browser and get a review like in a real interview.

Code · 10 min
Loading…

Statement

Write isPalindrome(s): return true if s reads the same forwards and backwards counting only letters (a–z, case-insensitive) and digits; every other character is ignored. The text is ASCII. Do it without building a cleaned-up copy of the text: O(1) memory.