DatabricksCodingMembers
Maximal Square and Rectangle in Binary Matrix
Members only
Given a binary matrix of 0s and 1s, find the largest all-1s square and return its area, then extend to the largest all-1s rectangle.
SWE
dp
grid
monotonic-stack
medium
Frequency
Single report
Last asked
2025-11-26
Stage
phone-screen · onsite-coding
Log in to continue reading the full content
