DSAverse
Bit Manipulation
Loading Bit Manipulation...
Binary Register
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
bit 15bit 0
Initializing Sorting Algorithms...
Sorting
Trees
Graphs
Preparing interactive visualizations...
Bit Manipulation
Loading Bit Manipulation...
Binary Register
Find the element that appears only once by XOR-ing every number. Duplicate pairs cancel to 0, revealing the unique value.
Why does XOR-ing all elements find the single non-repeated number?