How can we convert in a program from words like “eight” to the number 8? How can we convert the number 10 to the letters “Ten”? Here, I show you multiple ways to do it bi-directionally…from letters to digits, and digit to letters. I’ve seen several implementations and many rely on ASCII ordinals. But I […]
Month: April 2019
Let’s Play Palindrome! (C/C++)
Did you know that the longest Palindromic word in the Oxford English Dictionary is “tattarrattat” coined by James Joyce in Ulysses (1922) meaning “a knock on the door”? What is a Palindrome, you ask? Well, you already know it or have seen it. According to Wikipedia: “A palindrome is a word, phrase, number, or other […]
Let’s Play Palindrome! (Python)
Did you know that the longest Palindromic word in the Oxford English Dictionary is “tattarrattat” coined by James Joyce in Ulysses (1922) meaning “a knock on the door”? What is a Palindrome, you ask? Well, you already know it or have seen it. According to Wikipedia: “A palindrome is a word, phrase, number, or other […]