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.
Watch video Leetcode 542. 01 Matrix - Python online without registration, duration hours minute second in high quality. This video was added by user HelmyCodeCamp 01 September 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 23,264 once and liked it 274 people.