Maximum Depth of Binary Tree
Given the root of a binary tree, return its maximum depth.
The maximum depth is the number of nodes along the longest path from the root down to a leaf. The depth of an empty tree is 0.
**Inpu...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
