LC136. Single Number XOR Author: LEI XIA Date: 三月 2, 2020 17:09 a ^ b ^ b = a. c ^ c = 0. 123456789class Solution { public int singleNumber(int[] nums) { int res = nums[0]; for (int i = 1; i < nums.length; ++i) { res ^= nums[i]; } return res; }} Tag(s): # XOR back · home LC11. Container w. Most water LC328. Odd Even LinkedList