โ† Citrix questions

Distance matrix from positions of 1s

Filed under Citrix

The question

Given a binary matrix of 0s and 1s, construct and return a new matrix where each cell contains the minimum distance to the nearest 1 from the original matrix.

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

Related Citrix questions

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