comefrom: <qiyuangong>084_Largest_Rectangle_in_Histogram_1.py
code: def largestRectangleArea( heights):
      largest_rectangle = 0
      ls = len(heights)
      stack = [-1]
      top, pos = 0, 0
      for pos in range(ls):
          while top > 0 and heights[stack[top]] > heights[pos]:
              largest_rectangle = max(largest_rectangle, heights[stack[top]] * (pos - stack[top - 1] - 1))
              top -= 1
              stack.pop()
          stack.append(pos)
          top += 1
      while top > 0:
          largest_rectangle = max(largest_rectangle, heights[stack[top]] * (ls - stack[top - 1] - 1))
          top -= 1
      return largest_rectangle
masked: def sample_funcname ( var_0 ) :
      var_1 = 0
      var_2 = len ( var_0 )
      var_3 = [ - 1 ]
      var_4 , var_5 = 0 , 0
      for var_5 in range ( var_2 ) :
          while var_4 > 0 and var_0 [ var_3 [ var_4 ] ] > var_0 [ var_5 ] :
              var_1 = max ( var_1 , var_0 [ var_3 [ var_4 ] ] * ( var_5 - var_3 [ var_4 - 1 ] - 1 ) )
              var_4 -= 1
              var_3.pop ( )
          var_3.append ( var_5 )
          var_4 += 1
      while var_4 > 0 :
          var_1 = max ( var_1 , var_0 [ var_3 [ var_4 ] ] * ( var_2 - var_3 [ var_4 - 1 ] - 1 ) )
          var_4 -= 1
      return var_1
  