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

【每日一题】-2020年12月27日 85. 最大矩形 #19

Open
watchpoints opened this issue Dec 27, 2020 · 1 comment
Open

【每日一题】-2020年12月27日 85. 最大矩形 #19

watchpoints opened this issue Dec 27, 2020 · 1 comment
Assignees
Labels
Daily Question 每日一题

Comments

@watchpoints
Copy link
Contributor

watchpoints commented Dec 27, 2020

给定一个仅包含 0 和 1 、大小为 rows x cols 的二维二进制矩阵,找出只包含 1 的最大矩形,并返回其面积。
image

示例 2:

输入:matrix = []
输出:0
示例 3:

输入:matrix = [["0"]]
输出:0
示例 4:

输入:matrix = [["1"]]
输出:1
示例 5:

输入:matrix = [["0","0"]]
输出:0

来源:力扣(LeetCode)
链接:https://leetcode-cn.com/problems/maximal-rectangle
著作权归领扣网络所有。商业转载请联系官方授权,非商业转载请注明出处。

@watchpoints watchpoints added the Daily Question 每日一题 label Dec 27, 2020
@watchpoints watchpoints self-assigned this Dec 27, 2020
@watchpoints
Copy link
Contributor Author

必须学会这个。84. 柱状图中最大的矩形 https://leetcode-cn.com/problems/largest-rectangle-in-histogram/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Daily Question 每日一题
Projects
None yet
Development

No branches or pull requests

1 participant