BFS (Unweighted Path) pattern
A multi-source BFS simply starts with several level-zero nodes, then follows the same level-by-level rule.
Difficulty: Medium · Approach: Visible frontier and visited order
This is a public lesson preview. Sign in with a Lifetime Pass to open the protected animation, solution, and code.