Cousin Relationships. This page shows the relationship of cousins. There are several charts online showing these relationships that are more sophisticated, but this one is simple and hopefully explains the concept of the relationships.
A palindrome is a sentence, phrase, name, word or number series where the letters or numbers are in the same sequence when read forward or backwards. Some examples would be: 2002racecarradar, rotor, civic,tot mom mum dadnoon, toot, poop, sees, deed,Hannah, Eve, Anna, Elle, Viv, Lil, OttoStep on no pâ¦.
Obviously if aString is itself a palindrome then aString is the longest palindrome inside aString. You can tell it is working by the assertion statement. Do not think too much about the first line of executable code. It runs in exponential time to the size of the given text. 2  It runs by enumerating all the strings in the form a-z, creating two regexes for each generated string and testing the input against each regex. 3  Further, it fails if the palindrome contains uppercase letters, numbers, non-ascii text, punctuation, etc.