01 Matrix

Try to solve the 01 Matrix problem.

Statement

Given an m×nm \times n binary matrix, mat, find the distance from each cell to the nearest 00 ...