Maximal Rectangle
hard
1. Given a rows x cols binary matrix filled with 0's and 1's. 2. Find the largest rectangle containing only 1's and return its area.
Constraints
1. 1 <= row, cols <= 200 2. matrix[i][j] is 0 or 1.
Format
Input
Input is managed for you
Output
Output is managed for you
Example
Sample Input
2
5
10100
10111
Sample Output
3
Question Video