Maximal Rectangle
Example
Input:
[
["1","0","1","0","0"],
["1","0","1","1","1"],
["1","1","1","1","1"],
["1","0","0","1","0"]
]
Output: 6Note
["1","0","1","0","0"] --> 0
["2","0","2","1","1"] --> 3*1
["3","1","3","2","2"] --> 3*2
["4","1","3","3","2"] --> 5*1Code
Last updated