DSA Advanced Concepts

Bidirectional BFS

Search from both endpoints, expand complete layers, and detect a shortest-path connection correctly.