Open threeal opened 1 month ago
This issue suggests solving the problem 542. 01 Matrix. To achieve this, one can use a breadth-first search approach for each cell that contains a zero and calculate the distance to the nearby cells accordingly.
This issue suggests solving the problem 542. 01 Matrix. To achieve this, one can use a breadth-first search approach for each cell that contains a zero and calculate the distance to the nearby cells accordingly.