Question: Create a function PalindromeQ[str] that returns a value of True if its argument str is a palindrome, that is, if the string str is the

Create a function PalindromeQ[str] that returns a value of True if its argument str is a palindrome, that is, if the string str is the same forward and backward. For example, the word refer is a palindrome.

Several dozen words in an English dictionary contain two consecutive double letters: balloon, coffee, succeed, for example. Find all words in the dictionary that contain three consecutive double letters. This puzzle appeared on the Car Talk radio show (CarTalk 2007, June 25).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!