Amazon Interview Question

In an array elevery element is present twice except one. Need to find that element without using any extra space.

Interview Answer

Anonymous

Feb 13, 2023

Take XOR of all elements and the answer of the XOR will be the solution.