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.