Maximal Square

Preview

Given an m x n 2D matrix with only 0's and 1's, write a function to return the area of the largest square containing only 1's.

Sign in to read the full chapter.

Checking access…