Re: A Simple C Code to Discuss
- From: Randy Howard <randyhoward@xxxxxxxxxxxxxxxxx>
- Date: Sun, 30 Oct 2005 20:26:51 GMT
ethanmys wrote
(in article
<1130700706.708360.299740@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>):
> your code is clear. but i think it will cost O(n^2). what i think is:
> there shoud be a O(1) solution to this problem ( don't consider the
> input ).
Sure, a pre-computed lookup table. :-)
--
Randy Howard (2reply remove FOOBAR)
"The power of accurate observation is called cynicism by those
who have not got it." - George Bernard Shaw
.
- References:
- Re: A Simple C Code to Discuss
- From: Simon Biber
- Re: A Simple C Code to Discuss
- Prev by Date: Re: reading from a text file
- Next by Date: Re: Quick questions...
- Previous by thread: Re: A Simple C Code to Discuss
- Next by thread: Re: A Simple C Code to Discuss
- Index(es):