TheAlgorithms-C/leetcode/src/136.c
2019-08-24 10:08:45 -07:00

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;
}