AlgoMaster Logo

Maximal Rectangle

matrix=[["1","0","1","0","0"],["1","0","1","1","1"],["1","1","1","1","1"],["1","0","0","1","0"]]
0 / 643
algomaster.io
Step:Find the largest all-1s rectangle. Count the 1s in every rectangle and keep the full ones