Tag: DFS
5 posts
-
[2026] BFS vs DFS Complete Comparison | Graph Traversal Selection Complete Guide
Compare BFS and DFS from the perspective of working principles, time complexity, and space complexity. Learn selection criteria for shortest path, cycle...
-
[2026] Graph Data Structure | Adjacency List, Matrix, Traversal Complete Guide
Complete guide to graph data structures for coding interviews. Master adjacency list, adjacency matrix, BFS, and DFS with principles and code examples.
-
[2026] BFS and DFS | Graph Traversal Algorithms Complete Guide
Complete guide to BFS and DFS for coding interviews. Master breadth-first search and depth-first search with principles, code examples, and problem-solv...
-
[2026] Backtracking | Exhaustive Search Algorithm Complete Guide
Master backtracking: exhaustive search algorithm complete guide. Learn backtracking basics, permutations, combinations with principles and code examples.
-
[2026] C++ stack, queue & priority_queue: Container Adapters & BFS/DFS
Learn std::stack, std::queue, and priority_queue — LIFO vs FIFO, default deque backend, min-heaps, DFS/BFS sketches, and pop() returning void.