โ† MindTickle questions

Minimum distance from nearest 1 in a 0-1 matrix

Filed under MindTickle

The question

Given a 2D matrix containing 0s and 1s, for every 0 print the minimum distance from the nearest 1.

No write-up yet. Related questions below have one.

Related MindTickle questions

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