@Sandy: It can be done in O(n) time with O(n) extra space by sorting the data with a radix sort and then scanning the array for the element you are seeking.
Dave On Sep 7, 11:43 am, Sandy <sandy.wad...@gmail.com> wrote: > You have an array in which every number is repeated odd number of times > except one. Write a function to find that one element in O(n) time. > > -- > > *Sandeep Kumar,* > ( Mobile +91-9866507368 > > *“I believe in smart work, Believe Me”* -- 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.