Let A be an N-by-N matrix of zeroes and ones. A submatrix S of A is any group of contiguous entries that forms a square.
a. Design an O(N2) algorithm that determines the size of the largest submatrix of ones in A. For instance, in the matrix that follows, the largest submatrix is a four-by-four square.
b. **Repeat part (a) if S is allowed to be a rectangle, instead of a square. Largest is measured by area.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.