BFS vs DFS
A side-by-side comparison of Breadth-First Search (BFS) and Depth-First Search (DFS) graph traversal algorithms.
A side-by-side comparison of Breadth-First Search (BFS) and Depth-First Search (DFS) graph traversal algorithms.
A complete guide to Depth-First Search (DFS) algorithm with explanations, use cases, and implementations in Python, Java, C++, and JavaScript.
Learn how to implement Depth-First Search (DFS) for graph traversal in Swift, with recursive and iterative code examples and complexity analysis.
Solving the Diameter of Binary Tree problem using a Recursive Depth-First Search (DFS) approach.
Solving the Maximum Depth of Binary Tree problem using a Recursive Depth-First Search (DFS) approach.
Practice problems for Graphs to help you understand the concepts better.
Solve the Word Search problem using DFS with backtracking on a 2D character grid. Covers both Word Search I (single word) and Word Search II (multiple words with Trie).