← Tree Traversal

Micro-Drill #58 — Check if leaf

Tree Traversal Target: 5s

Leaf detection is used in path-sum, leaf-collection, and boundary traversal problems.

node.left is None and node.right is None

Type it from memory. Go.

Practice Problems

← Micro #57 Micro #59 →