BFS on trees is the foundation of "find shortest path", "nodes at distance k", and "zigzag traversal" variants that Amazon frequently asks.
Enable JavaScript for the full StreamPrep guide.