Text UtilitiesLesson 117Free preview
Palindrome Checker
This lesson is part of Web Developer Tools · All levels
Summary
The palindrome checker checks whether the text reads the same from the front and back after spacing, punctuation, and difference in the lower case letters are ignored. A classic example is this mattress is broken. The examination usually normalizes the text first, and then compares the characters at both ends. This tool helps you learn to manipulate strings while training the rigor of the rules of normalization.
Key points
- Normalisation usually includes lowercase and discarding non-alphabet
- Compare the characters from the front and back ends
- Spacing and punctuation are generally ignored
- Numbers can be treated as legitimate characters
- Palindrome is different from just the word inverted.
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.