Depth-First Search Problems

Master depth-first search problems with AI-powered solutions. Get instant coding assistance during your technical interviews for all 208 problems in this category.

Total Problems: 208
Easy: 36
Medium: 121
Hard: 51
Showing 50 of 208 problems

Problems

Scroll within this area to browse all problems

#
Title
Difficulty
207

Course Schedule

Medium
144

Binary Tree Preorder Traversal

Easy
94

Binary Tree Inorder Traversal

Easy
226

Invert Binary Tree

Easy
200

Number of Islands

Medium
236

Lowest Common Ancestor of a Binary Tree

Medium
79

Word Search

Medium
145

Binary Tree Postorder Traversal

Easy
721

Accounts Merge

Medium
98

Validate Binary Search Tree

Medium
803

Cheapest Flights Within K Stops

Medium
110

Balanced Binary Tree

Easy
543

Diameter of Binary Tree

Easy
733

Flood Fill

Easy
199

Binary Tree Right Side View

Medium
210

Course Schedule II

Medium
104

Maximum Depth of Binary Tree

Easy
124

Binary Tree Maximum Path Sum

Hard
1029

Vertical Order Traversal of a Binary Tree

Hard
801

Is Graph Bipartite?

Medium
235

Lowest Common Ancestor of a Binary Search Tree

Medium
529

Minesweeper

Medium
114

Flatten Binary Tree to Linked List

Medium
133

Clone Graph

Medium
653

Two Sum IV - Input is a BST

Easy
297

Serialize and Deserialize Binary Tree

Hard
572

Subtree of Another Tree

Easy
230

Kth Smallest Element in a BST

Medium
329

Longest Increasing Path in a Matrix

Hard
129

Sum Root to Leaf Numbers

Medium
101

Symmetric Tree

Easy
3613

Maximize Amount After Two Days of Conversions

Medium
341

Flatten Nested List Iterator

Medium
617

Merge Two Binary Trees

Easy
1428

Jump Game III

Medium
111

Minimum Depth of Binary Tree

Easy
854

Making A Large Island

Hard
794

Swim in Rising Water

Hard
1285

Balance a Binary Search Tree

Medium
399

Evaluate Division

Medium
417

Pacific Atlantic Water Flow

Medium
3863

Power Grid Maintenance

Medium
893

All Nodes Distance K in Binary Tree

Medium
211

Design Add and Search Words Data Structure

Medium
1558

Course Schedule IV

Medium
116

Populating Next Right Pointers in Each Node

Medium
99

Recover Binary Search Tree

Medium
744

Network Delay Time

Medium
1106

Escape a Large Maze

Hard
975

Range Sum of BST

Easy
Loading more problems...

Depth-First Search LeetCode Problems List

Related LeetCode Topics