โ† Accolite questions

Largest Submatrix with Black Boundaries

Filed under Accolite

Given an N x N matrix of 0s and 1s, find the side length of the largest square submatrix such that all four of its boundaries consist only of 1s. The interior of the square can contain 0s.

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

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