TheAlgorithms-C/leetcode/src/136.c
2020-06-28 15:25:37 +00:00

7 lines
150 B
C

int singleNumber(int *nums, int numsSize)
{
int i, result = 0;
for (i = 0; i < numsSize; i++) result = result ^ nums[i];
return result;
}