Technical Coding Test Question: Given a string as input, check if it is a palindrome. (A palindrome is a sequence of characters which reads the same backward or forward. e.g., “abccba” - Palindrome “aabbcc” - Not a palindrome)
Sigiloso
That implementation of IsPalindrome (posted Aug 24, 2015) is not correct. Words like "level" and "radar" have odd number of characters and are palindromes, but would return false using that code. Also using ToCharArray() is not necessary since a string has an indexer. Finally, a phrase can be a palindrome like "race car", so any algorithm needs to take that into account and ignore non-alpha chars.