comefrom: <awangdev>739. Daily Temperatures_1.java
code: public int[] dailyTemperatures(int[] T) {
          int n = T.length;
          int[] rst = new int[n];
          Stack<Integer> stack = new Stack<>(); 
          
          for (int i = n - 1; i >= 0; i--) {
              int num = T[i];
              while (!stack.isEmpty() && num >= T[stack.peek()]) stack.pop();
              if (!stack.isEmpty() && num < T[stack.peek()]) rst[i] = stack.peek() - i;
              else rst[i] = 0;
              
              stack.push(i);
          }
          
          return rst;
      }
masked: public int [ ] sample_funcname ( int [ ] var_0 ) {
    int var_1 = var_0 . length ;
    int [ ] var_2 = new int [ var_1 ] ;
    Stack < Integer > var_3 = new Stack < > ( ) ;
    for ( int var_4 = var_1 - 1 ;
    var_4 >= 0 ;
    var_4 -- ) {
      int var_5 = var_0 [ var_4 ] ;
      while ( ! var_3 . isEmpty ( ) && var_5 >= var_0 [ var_3 . peek ( ) ] ) var_3 . pop ( ) ;
      if ( ! var_3 . isEmpty ( ) && var_5 < var_0 [ var_3 . peek ( ) ] ) var_2 [ var_4 ] = var_3 . peek ( ) - var_4 ;
      else var_2 [ var_4 ] = 0 ;
      var_3 . push ( var_4 ) ;
    }
    return var_2 ;
  }
  