comefrom: <awangdev>414. Third Maximum Number_1.java
code: public int thirdMax(int[] nums) {
          PriorityQueue<Integer> pq = new PriorityQueue<>();
          for (int num : nums) {
              if (!pq.contains(num)) {
                  pq.offer(num);
                  if (pq.size() > 3) pq.poll();
              }
          }
          if (pq.size() < 3) {
              while (pq.size() > 1) pq.poll();
          }
          return pq.peek();
      }
masked: public int sample_funcname ( int [ ] var_0 ) {
    PriorityQueue < Integer > var_1 = new PriorityQueue < > ( ) ;
    for ( int var_2 : var_0 ) {
      if ( ! var_1 . contains ( var_2 ) ) {
        var_1 . offer ( var_2 ) ;
        if ( var_1 . size ( ) > 3 ) var_1 . poll ( ) ;
      }
    }
    if ( var_1 . size ( ) < 3 ) {
      while ( var_1 . size ( ) > 1 ) var_1 . poll ( ) ;
    }
    return var_1 . peek ( ) ;
  }
  