Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area.
Maximal Rectangle
最新推荐文章于 2021-06-14 17:39:06 发布
本文介绍了解决二维二进制矩阵中寻找包含全部1的最大矩形的问题。提出两种方法:一是使用垂线法,通过遍历矩阵并利用L、R、H向量记录每行的数据;二是通过更新向量p并调用calRect函数计算最大面积。

911

被折叠的 条评论
为什么被折叠?



