01 Matrix
Unlock detailed company stats for this questionUpgrade
Given an M x N binary matrix, calculate the distance of each cell to the nearest 0. Return a new matrix where each cell contains this distance.
Community answers
No answers contributed by the community yet.
Related questions
Set Matrix ZeroesRelated courses

Course

Course

