Given an m x n binary matrix filled with 0's and 1's, find the largest square containing only 1's and return its area.
Initialize DP matrix with zeros
Input Matrix
1
0
DP Matrix (max square side)
Position:
(-1, -1)
Max Side:
Max Area:
Current
Input 1
Max Square