84_largest_rectangle_in_histogram

Leetcode

84.柱状图中最大的矩形

shaozkshaozk leetcode/84_largest_rectangle_in_histogram.cpp · 6 行 · 更新于 2026-09-25

// 84.柱状图中最大的矩形
//
// 给定 n 个非负整数,用来表示柱状图中各个柱子的高度。每个柱子彼此相邻,且宽度为 1 。
// 求在该柱状图中,能够勾勒出来的矩形的最大面积。


评论