Rotting Oranges โ minute-by-minute BFS
Every minute, each rotten orange rots its fresh neighbours. Starting BFS from all rotten oranges at once, the layer number is the minute at which each orange turns.
Try:
← Prev
Next →
▶ Play
Reset
minute
0
fresh left
0