Depth first search tutorial and problem solving (Binary Tree)

31 Aug 2026 · 32 min
31:49

Learn depth-first search on binary trees with a recursive template, then solve four LeetCode problems: maximum depth, counting good nodes, finding max ancestor-descendant difference, and computing tree diameter. Time complexity is O(V+E), space is O(H).

Chapters

More from Ravindra

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
33:07
youtube.com

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

2mo ago
1:50
youtube.com

OpenAI build week hackathon - devpost : app demo

2mo ago
See all content