Given a n*m grid containing three types of cells: empty cells, cells with fresh oranges, cells with rotten oranges. A cell with rotten orange can rot fresh oranges present at its adjacent cells. Find the minimum time it will take to rot all the oranges.
Answers
Answered by
0
fresh ranges are the cells
Similar questions