← 返回 uber 的题目列表Maximum Square Area
类型:online_judge
Given a 2D binary matrix filled with '0's and '1's, find the largest square containing only '1's and return its area. The size of the matrix is m x n, where 1 <= m, n <= 300.
Example
Input
4 5
1 0 1 0 0
1 0 1 1 1
1 1 1 1 1
1 0 0 1 0