Deep Dive

Rotting Oranges

994. Rotting Oranges · Graph search · 63 of 78

1/6

Rot spreads

R0FFFFFF
In this lessonStep 1 of 6 · ← → keys
The question

Rotten oranges spread to fresh neighbours every minute. Find how long until no fresh orange is left. Start BFS from all rotten oranges together and count the layers.