Matrix Square Border Debugging
Filed under Drishti-Soft Solutions
The question
Given a long piece of code that finds squares of varying sizes within an NxM matrix of 0s and 1s where all four boundaries consist only of 1s, debug and modify the code slightly to produce the correct output.
No write-up yet. Related questions below have one.
Related Drishti-Soft Solutions questions
Collected from public candidate posts and coding forums. Updated Nov 2026.