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

More in Graphs: BFS/DFS

All algorithm problems