2018-04-29 Leetcode XOR ^ XOR 异或一般表示$a⊕b$ In Python/ C++a^b 运算性质 交换律 :$A ⊕ B = B ⊕ A$ 结合律:$A ⊕ (B ⊕ C) = (A ⊕ B) ⊕ C$ 恒等律:$A ⊕ 0 = A$ 归零率:$A ⊕ A = 0$ 推论:$(B ⊕ A) ⊕ B = A ⊕ (B ⊕ B) = A ⊕ 0 = A$ Newer 136. Single Number Older