Question DSA-QUE-0019
HardIn the 'rotten oranges' grid problem, why is multi-source BFS used?
- A.
It needs a stack
- B.
All rotten oranges spread at the same time, so they all start in the queue at level 0
- C.
To sort the oranges
- D.
DFS can't visit grids
Sign up free to see the answer and a step-by-step explanation.