Prove this XOR property

Revision en1, by Jason4L, 2024-06-18 14:33:08

Did you know that the minimum XOR pair of an array can be found by sorting the array, then checking the XOR of adjacent elements.

Can anyone prove why?

Tags xor, minimum, help

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Jason4L 2024-06-18 14:33:08 177 Initial revision (published)