TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy

TEAM-ADA@LISTSERV.ACM.ORG

Options: Use Forum View

Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

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

Print Reply
Mime-Version:
1.0
Sender:
"Team Ada: Ada Advocacy Issues (83 & 95)" <[log in to unmask]>
X-To:
Date:
Wed, 19 Apr 2000 10:48:53 -0700
Reply-To:
Mark Lundquist <[log in to unmask]>
Subject:
From:
Mark Lundquist <[log in to unmask]>
In-Reply-To:
Message from Glenn Booker <[log in to unmask]> of "Wed, 19 Apr 2000 07:51:56 EDT." <[log in to unmask]>
Content-Type:
text/plain; charset=us-ascii
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