← Adobe questions

Maximum size sub-matrix with all 1s in a binary matrix

Filed under Adobe · Also reported at PayPal, Tekion

Given an m x n binary matrix filled with 0s and 1s, find the largest square sub-matrix containing only 1s and return its area.

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 Adobe questions

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