mirror of
https://github.moeyy.xyz/https://github.com/TheAlgorithms/C.git
synced 2023-10-11 15:56:24 +08:00
7 lines
156 B
C
7 lines
156 B
C
|
int singleNumber(int* nums, int numsSize){
|
||
|
int i, result = 0;
|
||
|
for(i = 0; i < numsSize; i++)
|
||
|
result = result ^ nums[i];
|
||
|
return result;
|
||
|
}
|