Skip to content

Latest commit

 

History

History
43 lines (26 loc) · 661 Bytes

0085.maximal-rectangle.md

File metadata and controls

43 lines (26 loc) · 661 Bytes

0085.Maximal-Rectangle

Description

Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing only 1's and return its area. Example 1:

Input:
[
  ["1","0","1","0","0"],
  ["1","0","1","1","1"],
  ["1","1","1","1","1"],
  ["1","0","0","1","0"]
]
Output: 6

Tags: Math, String

题意

返回三角形最小面积

题解

思路1

DP

思路2

思路2 ```go

```

结语

如果你同我一样热爱数据结构、算法、LeetCode,可以关注我 GitHub 上的 LeetCode 题解:awesome-golang-algorithm