CodingReported in a candidate post, Jan 2024
Largest square of 1s in a binary matrix
Filed under JPMorgan Chase · Also reported at Twilio
The question
Given an m x n binary matrix of 0s and 1s, find the largest square containing only 1s and return its area.
No write-up yet. Related questions below have one.
Related JPMorgan Chase questions
Collected from public candidate posts and coding forums. Updated Nov 2026.