Problems / Graphs / Rotting Oranges
#85 Medium Time O(m·n) Space O(m·n) Animated

Rotting Oranges

Find time until all oranges are rotten using BFS.

LeetCode ↗
Approach: BFS
Click play to start
Step 0 / 0
Press play to start the visualization.

Steps