@ Saurabh XOR method will also work under the assumption that array 2 will contain the same elements as array 1 except one element.
On Fri, Oct 22, 2010 at 9:01 PM, Saurabh Koar <[email protected]>wrote: > @Mohit: Rajan clearly sais that array 2 contains all the elements of array1 > + 1 extra element..Your example doesn't do so...By the way the method > suhhested by Rajan is not universal.It is not necessary that array 2 will > contain the same elements as array 1...XOR method will be the best... > > -- > 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]<algogeeks%[email protected]> > . > 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 [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.
