@Sanju
I think there exists a restriction in your approach that all numbers between
1and n has to be present in the array.

Thanks
Soumitra

On Fri, Aug 19, 2011 at 9:53 AM, Sanjay Rajpal <tosanjayraj...@gmail.com>wrote:

> In the first loop, numbers are the numbers in the given array
> but in the second loop, numbers are just natural numbers.
>
> I forgot to mention as people may get confused.
>
>
>
> *Regards
>
> Sanju
>
> Happy to Help :)*
>
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to algogeeks@googlegroups.com.
> To unsubscribe from this group, send email to
> algogeeks+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to