摘要: 1. 柱状图中最大的矩形(84) 给定 n 个非负整数,用来表示柱状图中各个柱子的高度。每个柱子彼此相邻,且宽度为 1 。求在该柱状图中,能够勾勒出来的矩形的最大面积。 class Solution { public int largestRectangleArea(int[] heights) { 阅读全文
posted @ 2023-11-16 10:40 forever_fate 阅读(13) 评论(0) 推荐(0)