Mime-Version: |
1.0 |
Sender: |
|
X-To: |
|
Date: |
Wed, 19 Apr 2000 10:48:53 -0700 |
Reply-To: |
|
Subject: |
|
From: |
|
In-Reply-To: |
|
Content-Type: |
text/plain; charset=us-ascii |
Parts/Attachments: |
|
|
Palindrome, Palindrome, what's in a name?
Palindrome, Palindrome, backwards the same.
- Riders In The Sky, "The Ballad Of Palindrome"
From: Glenn Booker <[log in to unmask]>
> That's correct. An example is "Madam, I'm Adam." If you ignore the spaces a
nd punctuation, that becomes MADAMIMADAM, which is the same sequence of letters
either forward or backward. Notice that the "I" is the middle of the string,
and doesn't have to match any other letters. If a string has an even number of
letters, then the two middle letters much match for it to be a palindrome.
--
Mark Lundquist
Senior Software Engineer
Rational Software
Development Solutions Business Unit
Aloha, OR, USA
|
|
|