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
相關文章
相關標籤/搜索