Maximal Square
Maximal Square
Given an m × n binary matrix matrix containing characters '0' and '1', find the largest square containing only '1's and return its area.
Example
Input:
1 0 1...
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:
