<reponame>kkcookies99/UAST<filename>Dataset/Leetcode/train/136/368.py<gh_stars>0
 class Solution(object):
    def singleNumber(self, nums):
        """
        :type nums: List[int]
        :rtype: int
        """
        res = 0
        for i in range(len(nums)):
            res = nums[i] ^ res              
        return res


class Solution(object):
    def singleNumber(self, nums):
        """
        :type nums: List[int]
        :rtype: int
        """
        res = 0
        for i in range(len(nums)):
            res = nums[i] ^ res              
        return res
:type nums: List[int]         :rtype: int