101 Logo
onenoughtone

Practice Problems

Reinforce Your Learning

Practice these depth-first search problems to strengthen your understanding of DFS 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

Number of Islands
Medium
DFS, BFS, Matrix
Not Started
Course Schedule
Medium
DFS, Graph, Topological Sort
Not Started
Clone Graph
Medium
DFS, BFS, Graph
Not Started
Pacific Atlantic Water Flow
Medium
DFS, BFS, Matrix
Not Started
Surrounded Regions
Medium
DFS, BFS, Matrix
Not Started
N-Queens
Hard
DFS, Backtracking
Not Started
Sudoku Solver
Hard
DFS, Backtracking
Not Started
Word Search
Medium
DFS, Backtracking, Matrix
Not Started
Graph Valid Tree
Medium
DFS, BFS, Graph
Not Started
Critical Connections in a Network
Hard
DFS, Graph, Tarjan's Algorithm
Not Started
IntroVisualizePatternsPractice
101 Logo
onenoughtone