TheAlgorithms-C/leetcode/src/136.c

7 lines
156 B
C
Raw Normal View History

2019-08-25 01:08:45 +08:00
int singleNumber(int* nums, int numsSize){
int i, result = 0;
for(i = 0; i < numsSize; i++)
result = result ^ nums[i];
return result;
}