Maximal Square

Solution Code

Time Complexity

O(M × N)

Space Complexity

O(M × N)