Breadth first search (BFS) tutorial, understanding common pattern and code template.

7 Aug 2026 · 33 min
33:07

Learn breadth-first search as a level-by-level graph traversal using a FIFO queue. The instructor covers two code templates: shift-based for processing nodes one by one, and level-based for handling level-specific logic. He solves Binary Tree Right Side View and Zigzag Level Order Traversal to show how each template applies.

Chapters

More from Ravindra

31:49
youtube.com

Depth first search tutorial and problem solving (Binary Tree)

1mo ago
2:48
youtube.com

Leetcode - Cinema Seat Allocation problem solved #coding #algorithm #datastructures #tech #dsa

1mo ago
4:10
youtube.com

cockroachdb aws hackathon - build with agentic memory

1mo ago
1:50
youtube.com

OpenAI build week hackathon - devpost : app demo

2mo ago
See all content