
Given an m x n binary matrix mat , return the distance of the nearest 0 for each cell .
The distance between two cells sharing a common edge is 1 .
m == mat.lengthn == mat[i].length1 <= m, n <= 10 ^41 <= m * n <= 10 ^4mat[i][j] is either 0 or 1 .There is at least one 0 in mat .Note: This question is the same as 1765: https://leetcode.com/problems/map-of-highest-peak/