comefrom: <doocs>0169.Majority Element_1.py
code: def majorityElement( nums: List[int]) -> int:
      cnt = m = 0
      for v in nums:
          if cnt == 0:
              m, cnt = v, 1
          else:
              cnt += 1 if m == v else -1
      return m
masked: def sample_funcname ( var_0 : List [ int ] ) -> int :
      var_2 = var_1 = 0
      for var_3 in var_0 :
          if var_2 == 0 :
              var_1 , var_2 = var_3 , 1
          else :
              var_2 += 1 if var_1 == var_3 else - 1
      return var_1
  