submatrix from a matrix
- by Grv
A matrix is of size n*n and it consists only 0 and 1
find the largest submatrix that consists of 1's only
eg 10010
11100
11001
11110
largest sub matrix will be of 3*2 from row 2 to row 4
please answer with best space and time complexity