Find the Largest All-Ones Submatrix in a Binary Matrix

Given a binary matrix matrix of size m x n containing only 0/1, compute the area of the largest submatrix consisting of all 1s (the submatrix must be a contiguous rectangle of rows and colum...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: