TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy

TEAM-ADA@LISTSERV.ACM.ORG

Options: Use Classic View

Use Monospaced Font
Show HTML Part by Default
Show All Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Mark Lundquist <[log in to unmask]>
Wed, 19 Apr 2000 10:48:53 -0700
text/plain (23 lines)
    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

ATOM RSS1 RSS2