题目:
题解:
cpp
int singleNumber(int *nums, int numsSize) {
int a = 0, b = 0;
for (int i = 0; i < numsSize; i++) {
b = ~a & (b ^ nums[i]);
a = ~b & (a ^ nums[i]);
}
return b;
}