You did not get my point, second time you have to XOR with Natural numbers, not with original array.
Check out my post again :) After u calculated 1^2^3^4^6,let this be Res. XOR this result with Res^1^2^3^4^5^6. Now you got the point ? *Regards Sanju Happy to Help :)* On Fri, Aug 19, 2011 at 6:46 AM, priya ramesh < love.for.programm...@gmail.com> wrote: > acc to your logic, > it should be 1^2^3^4^5^5^6 > which is 1^2^3^4^6 (5^5 is zero) > now when you XOR this with the given array, > the result will again be 0. > > > > -- > 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. > -- 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.