Back to DSA sheet
Maximum Depth of Binary Tree
EasyBinary TreesReturn the maximum depth, the number of nodes along the longest path from the root to a leaf.
Constraints
- 0 <= nodes <= 10^4
- -100 <= Node.val <= 100
Sheets
Blind 75Grind 75NeetCode 150NeetCode 250
maximum-depth-of-binary-tree.cpp
Loading editor
Custom input (stdin)
Output
Run your code to see its output.