12 problems

BFS interview problems

12 BFS problems, from easy to hard. Each one has an editorial explaining the approach and its complexity, and a visualizer that runs the solution step by step on the example input or your own.

Medium (9)

Hard (3)

All topics · All problems