<gh_stars>1-10
from functools import reduce
import operator


class Solution:

    def singleNumber(self, nums):
        return reduce(operator.xor, nums)

from functools import reduce
import operator


class Solution:

    def singleNumber(self, nums):
        return reduce(operator.xor, nums)