Every value in nums appears exactly twice, except for one value that appears once. Return that value.
Example 1
Input:
single_number([4, 1, 2, 1, 2])
Output:
4
Example 2
Input:
single_number([7])
Output:
7
1 <= len(nums) <= 2 * 10**5 + 1, and the length is odd0 <= nums[i] <= 10**5No results yet
Run your code to check it against the examples, or submit to run every test.