Problem 542 · Medium

01 Matrix

Find distance of nearest 0 for every cell in binary matrix.

Open the interactive visualisation