(nums)
return res
:type nums: List[int]
    :rtype: int
:type nums: List[int]
    :rtype: int
: type nums : List [ int ] : rtype : int
def single_number(nums):
    """
    :type nums: List[int]
    :rtype: int
    """
    res = 0
    for i in range(0, 32):
        count = 0
        for num in nums:
            if ((num >> i) & 1):
                count += 1
        res |= ((count % 3) << i)
    if res >= 2 ** 31:
        res -= 2 ** 32
    return res
def single_number ( nums ) : res = 0 for i in range ( 0 , 32 ) : count = 0 for num in nums : if ( ( num >> i ) & 1 ) : count += 1 res |= ( ( count % 3 ) << i ) if res >= 2 ** 31 : res -= 2 ** 32 return res