101 Logo
onenoughtone

Practice Problems

Reinforce Your Learning

Practice these breadth-first search problems to strengthen your understanding of BFS concepts.

Difficulty Levels:

EasyMediumHard

Filter by Difficulty:

Problem of the Day

Number of Islands

Medium

Count the number of islands in a 2D grid.

Input: Example input
Output: Example output

All Problems

Shortest Path in Binary Matrix
Medium
BFS, Matrix
Not Started
Word Ladder
Medium
BFS, String
Not Started
Binary Tree Level Order Traversal
Easy
BFS, Tree
Not Started
Binary Tree Zigzag Level Order Traversal
Medium
BFS, Tree
Not Started
Number of Islands
Medium
BFS, DFS, Matrix
Not Started
Walls and Gates
Medium
BFS, Matrix
Not Started
Rotting Oranges
Medium
BFS, Matrix
Not Started
Is Graph Bipartite?
Medium
BFS, Graph
Not Started
Course Schedule
Medium
BFS, Graph, Topological Sort
Not Started
Minimum Height Trees
Hard
BFS, Graph
Not Started
IntroVisualizePatternsPractice
101 Logo
onenoughtone