do you have the range of elements in the array?

On Sun, Jan 16, 2011 at 8:51 AM, nphard nphard <nphard.nph...@gmail.com>wrote:

> Given an array of integers of size 'n' - consisting of 'n-2' unique
> integers and 1 integer with a duplicate, find the repeated element in O(n).
>
> Note: This is a converse of finding the unique element in an array
> consisting of duplicates - which can be solved with the XOR technique - but
> I am not sure if the same/similar technique can be applied here.
>
> --
> 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<algogeeks%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>



-- 
Thanks & Regards
Nikhil Agarwal
Senior Undergraduate
Computer Science & Engineering,
National Institute Of Technology, Durgapur,India
http://tech-nikk.blogspot.com
http://beta.freshersworld.com/communities/nitd

-- 
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