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
Condense Mail Headers

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

Print Reply
Content-Type: text/plain; charset="iso-8859-1"
Sender: "Team Ada: Ada Advocacy Issues (83 & 95)" <[log in to unmask]>
From: "Kester, Rush W." <[log in to unmask]>
Date: Fri, 21 Apr 2000 12:30:52 -0400
MIME-Version: 1.0
X-To: "W. Wesley Groleau x4923" <[log in to unmask]>
Reply-To: "Kester, Rush W." <[log in to unmask]>
Parts/Attachments: text/plain (27 lines)
For heaven's sake lets leave that last line as "an exercise for the
student!"

-----Original Message-----
From: W. Wesley Groleau x4923 [mailto:[log in to unmask]]
Sent: Friday, April 21, 2000 9:13 AM
To: [log in to unmask]
Subject: Re: [Off topic] palindromes


> It seems to me that this will return true for
> any string presented. It calls itself with a

You are right.

> smaller and smaller slice of the string until
> it makes the <=1 requirement and then returns
> a boolean true all the way back up. I put it
> into a small example test program and thats
> what I seem to get. Am I missing something?

No, one line of code was missing from the second version.

--
Wes Groleau
http://freepages.genealogy.rootsweb.com/~wgroleau

ATOM RSS1 RSS2