Re: Code review requested, Accelerated C++

Discussion in 'C++' started by Mike Wahler, Oct 18, 2004.

  1. Mike Wahler

    Mike Wahler Guest

    "Joe Van Dyk" <> 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
     
    Mike Wahler, Oct 18, 2004
    #1
    1. Advertising

  2. 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.
     
    E. Robert Tisdale, Oct 18, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ian Pilcher

    Code review requested

    Ian Pilcher, Dec 15, 2003, in forum: Java
    Replies:
    0
    Views:
    348
    Ian Pilcher
    Dec 15, 2003
  2. Ed

    Code review requested

    Ed, Jul 19, 2004, in forum: Java
    Replies:
    1
    Views:
    365
    Filip Larsen
    Jul 19, 2004
  3. Vyacheslav Kononenko

    Re: Code review requested, Accelerated C++

    Vyacheslav Kononenko, Oct 18, 2004, in forum: C++
    Replies:
    0
    Views:
    498
    Vyacheslav Kononenko
    Oct 18, 2004
  4. www
    Replies:
    51
    Views:
    1,502
  5. luserXtrog

    A little light code review requested

    luserXtrog, Aug 18, 2010, in forum: C Programming
    Replies:
    2
    Views:
    347
    luserXtrog
    Aug 18, 2010
Loading...

Share This Page