leetcode -- Maximal Rectangle -- 重点

https://leetcode.com/problems/maximal-rectangle/html 还能够结合https://leetcode.com/problems/maximal-square/一块儿看python 这里思路很重要,是重点。web 就是把每一行转化成上一题求histogram最大矩形的题目来作。这里每个行的,每个元素的直方图就是往上数**连续**1的个数。求连续1能够先
相关文章
相关标签/搜索