Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leetcode84 柱状图中最大的矩形 | Joke-Lin | BLOG #7

Open
Weijun-Lin opened this issue Mar 25, 2020 · 0 comments
Open

Leetcode84 柱状图中最大的矩形 | Joke-Lin | BLOG #7

Weijun-Lin opened this issue Mar 25, 2020 · 0 comments

Comments

@Weijun-Lin
Copy link
Owner

https://joke-lin.top/2020/03/01/2020-02-29-Leetcode84/

题目描述

题目图片会403。。

给定 n 个非负整数,用来表示柱状图中各个柱子的高度。每个柱子彼此相邻,且宽度为 1 。
求在该柱状图中,能够勾勒出来的矩形的最大面积。
以上是柱状图的示例,其中每个柱子的宽度为 1,给定的高度为 [2,1,5,6,2,3]。
图中阴影部分为所能勾勒出的最大矩形面积,其面积为 10 个单位。
示例:
12输入: [2,1,5,6,2,3]输出:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant