Easy
Return the height of a binary tree.
Given the root of a binary tree, return its maximum depth.
Examples
Input: root = [3,9,20,null,null,15,7]
Output: 3
Constraints
- Tree may be empty
Coding Challenge
Return the height of a binary tree.
Given the root of a binary tree, return its maximum depth.
Input: root = [3,9,20,null,null,15,7]
Output: 3
Preparing your coding workspace...