← Google questions
CodingReported in a candidate post, Oct 2024

Maximum area of rectangles in a matrix

Filed under Google

Given a binary matrix (or a grid of heights), find the area of the largest rectangle containing only 1s (or the largest rectangle in a histogram).

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Google questions

Collected from public candidate posts and coding forums. Updated Nov 2026.