2 problems using this pattern
Breadth-first search for shortest path and level-order traversal problems.
O(n)
(1 problem)
O(V + E)
(1 problem)
O(n)
(1 problem)
O(V)
(1 problem)