TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy

TEAM-ADA@LISTSERV.ACM.ORG

Options: Use Classic View

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

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

Print Reply
"Kester, Rush W." <[log in to unmask]>
Fri, 21 Apr 2000 12:30:52 -0400
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