Pattern 22: LeetCode Interview Patterns24 sections · 736 units
Open in CourseQuiz: Multi-Source BFS
Test your understanding
Check Your Understanding
In Rotting Oranges, multiple rotten oranges spread simultaneously. How do you start the BFS?
- A.Process rotten oranges one at a time sequentially
- B.Run separate BFS from each rotten orange
- C.Pick one rotten orange randomly and start from there
- D.Add all rotten oranges to the queue before starting