Rotting Oranges — Graphs: BFS/DFS
Work out how long rot takes to spread from rotten oranges to every fresh one in a crate, or report that some never will.
Graphs: BFS/DFS · Medium
Work out how long rot takes to spread from rotten oranges to every fresh one in a crate, or report that some never will.
Graphs: BFS/DFS · Medium