Leetcode_85 Maximal Rectangle

又好久没写博客了,做了一道题写一写吧。 一道难度为hard的题目,不是很难,牺牲点时间复杂度总是能够完成的。 题目: Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing only 1's and return its area. For example, given
相关文章
相关标签/搜索