I think that you are saying that the second array contains all of the elements in the first array, plus one additional element. If this is the proper interpretation, then just XOR all of the elements of both arrays and the result is the additional element.
Dave On Oct 21, 9:12 am, bittu <[email protected]> wrote: > Given 2 array in first array n elements are sorted there in second > elements n+1 elements and n elements in 2nd array not ordered and it > also contains one extra elements wap to find out extra elements in one > pass. > > Regards > Shashank Mani > BIT Mesra -- 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.
