leetcode-084 柱状图中的最大矩形 单调栈
单调栈
第一次听说这种方法,很巧妙。
思路转载自:
作者:6westboy9
链接:https://leetcode-cn.com/problems/largest-rectangle-in-histogram/solution/084zhu-zhuang-tu-zhong-zui-da-de-ju-xing-by-6westb/
来源:力扣(LeetCode)
著作权归作者所有。商业转载请联系...
原创
2020-03-30 16:11:40 ·
134 阅读 ·
0 评论