Skip to content

Commit fd4bbb0

Browse files
committed
Create README - LeetHub
1 parent d5df7ad commit fd4bbb0

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

0085-maximal-rectangle/README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<h2><a href="https://leetcode.com/problems/maximal-rectangle/">85. Maximal Rectangle</a></h2><h3>Hard</h3><hr><div><p>Given a <code>rows x cols</code>&nbsp;binary <code>matrix</code> filled with <code>0</code>'s and <code>1</code>'s, find the largest rectangle containing only <code>1</code>'s and return <em>its area</em>.</p>
2+
3+
<p>&nbsp;</p>
4+
<p><strong class="example">Example 1:</strong></p>
5+
<img alt="" src="https://assets.leetcode.com/uploads/2020/09/14/maximal.jpg" style="width: 402px; height: 322px;">
6+
<pre><strong>Input:</strong> matrix = [["1","0","1","0","0"],["1","0","1","1","1"],["1","1","1","1","1"],["1","0","0","1","0"]]
7+
<strong>Output:</strong> 6
8+
<strong>Explanation:</strong> The maximal rectangle is shown in the above picture.
9+
</pre>
10+
11+
<p><strong class="example">Example 2:</strong></p>
12+
13+
<pre><strong>Input:</strong> matrix = [["0"]]
14+
<strong>Output:</strong> 0
15+
</pre>
16+
17+
<p><strong class="example">Example 3:</strong></p>
18+
19+
<pre><strong>Input:</strong> matrix = [["1"]]
20+
<strong>Output:</strong> 1
21+
</pre>
22+
23+
<p>&nbsp;</p>
24+
<p><strong>Constraints:</strong></p>
25+
26+
<ul>
27+
<li><code>rows == matrix.length</code></li>
28+
<li><code>cols == matrix[i].length</code></li>
29+
<li><code>1 &lt;= row, cols &lt;= 200</code></li>
30+
<li><code>matrix[i][j]</code> is <code>'0'</code> or <code>'1'</code>.</li>
31+
</ul>
32+
</div>

0 commit comments

Comments
 (0)