Maximal Rectangle

Solution Code

Time Complexity

O(R C)

Space Complexity

O(C)