comefrom: <qiyuangong>414_Third_Maximum_Number_1.py
code: def thirdMax( nums):
      import Queue
      pq = Queue.PriorityQueue(4)
      check = set()
      for n in nums:
          if n in check:
              continue
          pq.put(n)
          check.add(n)
          if len(check) > 3:
              check.remove(pq.get())
      total = len(check)
      while total < 3 and total > 1:
          total -= 1
      return pq.get()
masked: def sample_funcname ( var_0 ) :
      import var_1
      var_4 = var_1.PriorityQueue ( 4 )
      var_6 = set ( )
      for var_7 in var_0 :
          if var_7 in var_6 :
              continue
          var_4.put ( var_7 )
          var_6.add ( var_7 )
          if len ( var_6 ) > 3 :
              var_6.remove ( var_4.get ( ) )
      var_14 = len ( var_6 )
      while var_14 < 3 and var_14 > 1 :
          var_14 -= 1
      return var_4.get ( )
  