0542 01 Matrix
Warning
This post is more than a year old. Information may be outdated.
Solved at: 230130
Question
Given an m x n binary matrix mat, return the distance of the nearest 0 for each cell.
The distance between two adjacent cells is 1.
Solution
Backlinks1
Coding TestsComments