Skip to content

BFS Problems

Breadth-first search explores nodes level by level, making it ideal for shortest-path problems in unweighted graphs. Practice BFS on trees, grids, and word transformation puzzles.

26 problems

Title Difficulty
Alien Dictionary Hard
As Far from Land as Possible Medium
Breadth-First Search of a Graph Easy
Binary Tree Level Order Traversal Medium
Binary Tree Right Side View Medium
Binary Tree Zigzag Level Order Traversal Medium
Course Schedule Medium
Is Graph Bipartite? Medium
Detect Cycle in a Directed Graph Easy
Distance to the Nearest 1 Medium
Evaluate Division Medium
Find Eventual Safe States Medium
Flood Fill Easy
Capture Surrounded Regions Medium
Making a Large Island Hard
Maximum Width of Binary Tree Medium
Number of Islands Medium
Rotting Oranges Medium
Shortest Bridge Medium
Snakes and Ladders Medium
Minimum Knight Moves on a Board Medium
Swim in Rising Water Hard
Time Needed to Inform All Employees Medium
Topological Sort Medium
Water Jug Problem Using BFS Hard
Word Ladder Hard