What is a common mistake in Grid BFS: Multi-source Distance Problems?
Practice this question from Quiz: Grid BFS: Multi-source Distance Problems, with options and an explanation.
Question
What is a common mistake in Grid BFS: Multi-source Distance Problems?
Option A — Correct answer
Running BFS from each source separately
Option B
Writing a small dry run
Option C
Naming the pattern
Option D
Testing a boundary case
Explanation
This is the most likely implementation risk for this chapter.