Max Tree Depth

Preview

Given the root of a binary tree, write a recursive function to find its maximum depth, where maximum depth is defined as the number of nodes along the longest path from the root node down to a leaf node.

Sign in to read the full chapter.

Checking access…