Re: One algorithm problem
- From: Richard Heathfield <rjh@xxxxxxxxxxxxxxx>
- Date: Sun, 19 Apr 2009 17:55:34 +0000
mohangupta13 said:
<snip>
I did put a lot of thought and did arrive with a solution but that
requires and additional space of size N
:
Say i have an array C[N]
for(i=0;i<N;i++)
You already broke the constraint that you're not supposed to use any
extra memory. You just used sizeof i bytes of extra memory.
<snip>
--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
.
- Follow-Ups:
- Re: One algorithm problem
- From: mohangupta13
- Re: One algorithm problem
- From: BartC
- Re: One algorithm problem
- References:
- One algorithm problem
- From: mohangupta13
- Re: One algorithm problem
- From: CBFalconer
- Re: One algorithm problem
- From: mohangupta13
- Re: One algorithm problem
- From: Patricia Shanahan
- Re: One algorithm problem
- From: mohangupta13
- One algorithm problem
- Prev by Date: Re: One algorithm problem
- Next by Date: Re: One algorithm problem
- Previous by thread: Re: One algorithm problem
- Next by thread: Re: One algorithm problem
- Index(es):
Relevant Pages
|