Prove this XOR property

Правка en1, от 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?

Теги xor, minimum, help

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский Jason4L 2024-06-18 14:33:08 177 Initial revision (published)