What about this? 1. xor all elements of each array and their corresponding indexes & sum all the elements of each array & mul all elements of each array 2. if all results are the same then the arrays are identical
Nice to "meet" you all, I just joined and this is my first post :) ... > Given two arrays of numbers, find if each of the two arrays have the > same set of integers ? Suggest an algo which can run faster than NlogN > without extra space? -- 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.
