Interview Questions: Detecting Palindromes
This problem is almost too simple to mention, but it has actually been asked of me in an interview, so I’ll go ahead and address it. Problem: detect if a given string is a palindrome. Be sure to ignore case, spaces, and punctuation characters. Solution: Start by setting references to the first and last characters. …
Continue reading ‘Interview Questions: Detecting Palindromes’ »