TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy

TEAM-ADA@LISTSERV.ACM.ORG

Options: Use Forum View

Use Proportional Font
Show Text Part by Default
Show All Mail Headers

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

Print Reply
Subject:
From:
Mark Lundquist <[log in to unmask]>
Reply To:
Mark Lundquist <[log in to unmask]>
Date:
Wed, 19 Apr 2000 10:48:53 -0700
Content-Type:
text/plain
Parts/Attachments:
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