A palindrome is a word, phrase, number or sequence of words that reads the same backward as forward. Punctuation and spaces between the words or lettering is allowed.
- Clean the string by removing all punctuation and whitespace and converting all letters to lowercase.
- Reverse the clean string.
- If the clean string is the same as the reversed string then we have a palindrome.
- Civic
- Level
- Madam
- Radar
- Don't nod.
- I did, did I?
- My gym
- A man, a plan, a canal - Panama