84. 柱状图中最大的矩形
class Solution:
def largestRectangleArea(self, heights: List[int]) -> int:
# st = [0]
# result = 0
# for i in range(1,len(heights)):
# if heights[i] >= heights[st[-1]]:
# st.append(i)
# else:
# while st and heights[i]= heights[st[-1]]:
st.append(i)
else:
while st and heights[i]