Module 10 · Strings
String Problems: Palindromes, Words, Case
Free with an accountReading
Amara runs the word-games club, and this week's theme is palindromes: words that read the same backwards. Her checker says yes to rotator and noon, and no to kayaks. Then Zara types A man, a plan, a canal: Panama, and the checker says no. A famous palindrome has just failed a palindrome test, and this lesson finds out why.
Checking what this lesson needs for you…
What is inside String Problems: Palindromes, Words, Case
- Two indexes closing in on the middle
- Why the famous sentence fails
- Normalise first, then test
- Counting words with a flag
- Changing case, one box at a time
- Run-length encoding, planned as a trace
- Reversing the words, planned as a trace
- Zara's edge list