DSA Key Problems

01 Matrix

Given a binary matrix, return a matrix in which each cell contains its shortest horizontal-or-vertical distance to any zero cell.