摘要: 也可以暴力 每个位置中心扩展 class Solution { public: int largestRectangleArea(vector<int>& heights) { heights.push_back(-1);//同理,我们希望栈中所有数据出栈,所以给数组最后添加一个负数 stack<i 阅读全文