Largest all-ones square and rectangle in a binary matrix
Given a grid of 0s and 1s, return the area of the largest square made only of 1s. Then extend your approach to the largest all-ones rectangle.
No answer yet. Write the first one; the best answer gets endorsed.
