CodingReported in a candidate post, Sep 2019
Largest square with all 1s in a 2D array
Filed under Hike
The question
Given a 2D binary array containing 0s and 1s, find the largest square submatrix containing only 1s.
No write-up yet. Related questions below have one.
Related Hike questions
Collected from public candidate posts and coding forums. Updated Nov 2026.