comefrom: <doocs>0137.Single Number II_1.py
code: def singleNumber( nums: List[int]) -> int:
      ans = 0
      for i in range(32):
          cnt = sum(num >> i & 1 for num in nums)
          if cnt % 3:
              if i == 31:
                  ans -= 1 << i
              else:
                  ans |= 1 << i
      return ans
masked: def sample_funcname ( var_0 : List [ int ] ) -> int :
      var_4 = 0
      for var_7 in range ( 32 ) :
          var_11 = sum ( var_10 >> var_7 & 1 for var_10 in var_0 )
          if var_11 % 3 :
              if var_7 == 31 :
                  var_4 -= 1 << var_7
              else :
                  var_4 |= 1 << var_7
      return var_4
  