104. Maximum Depth of Binary Tree

Return the number of nodes on the longest path from the root down to a leaf.

Patterns: tree, recursion. Difficulty: easy.

Open in Dryrun