Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > Re: Code review requested, Accelerated C++

Reply
Thread Tools

Re: Code review requested, Accelerated C++

 
 
Mike Wahler
Guest
Posts: n/a
 
      10-18-2004

"Joe Van Dyk" <(E-Mail Removed)> wrote in message
news:2004101717094016807%joevandyk@nospamgmailcom. ..
> One of the program requirements was to print out all the palindromes in
> the dictionary, so either I'd need to print them out as I found them or
> save them somehow.


OK, I didn't thoroughly review the requirments. Outputting as
you go would probably be faster, since you wouldn't have any
overhead caused by storing them.

-Mike


 
Reply With Quote
 
 
 
 
E. Robert Tisdale
Guest
Posts: n/a
 
      10-18-2004
Mike Wahler wrote:

> Joe Van Dyk wrote:
>
>>One of the program requirements was to print out all the palindromes in
>>the dictionary, so either I'd need to print them out as I found them or
>>save them somehow.

>
> OK, I didn't thoroughly review the requirments.
> Outputting as you go would probably be faster,
> since you wouldn't have any overhead caused by storing them.


I was surprised to see how few (35) palindromes there were in my

/usr/share/dict/words

dictionary. Evidently,
virtually *all* of the time is spent searching for palindromes.
It requires almost no time to maintain and sort such a short list.
In this case, Joe's original design was probably best.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What is code review? (Java code review) www Java 51 05-15-2007 01:10 PM
help understand source code in charpter 14.4 of accelerated C++ baumann@pan C++ 6 05-19-2005 08:46 AM
"Accelerated" certification testing programs Jameson D MCSE 2 11-26-2004 01:47 PM
Re: Code review requested, Accelerated C++ Vyacheslav Kononenko C++ 0 10-18-2004 01:58 PM
Accelerated C++ Sample Solutions Martin C++ 8 10-23-2003 05:32 PM



Advertisments