题目描述
解题思路
代码
复杂度分析
GitHub LeetCode 项目
题目描述
题目链接
给定一个仅包含 0 和 1 、大小为 rows x cols 的二维二进制矩阵,找出只包含 1 的最大矩形...= [["1","0","1","0","0"],["1","0","1","1","1"],["1","1","1","1","1"],["1","0","0","1","0"]]
输出:6
解释:最大矩形如上图所示...柱状图中最大的矩形 题目很像,是那道题目的变形,我们可以把矩形的每一行作为底,看每个柱形的面积,就可转换成 84 题。