@adarsh
no it will Fails for both even and odd no of elemets
a[] = {2,2,2,4,6,6,6}

seems like we need to check for the presence of each no between min to max
using a good hashing approach.

On Sat, Jun 25, 2011 at 11:20 AM, Adarsh <[email protected]> wrote:

> Missed that... also, my method seems to work only if number of
> elements are odd.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>
>


-- 
Sunny Aggrawal
B-Tech IV year,CSI
Indian Institute Of Technology,Roorkee

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

Reply via email to