Maximum Depth of Binary Tree
Given the root of a binary tree, return its maximum depth.
Maximum Depth of Binary Tree

Given the root of a binary tree, return its maximum depth.

Example 1:
Input: {"root":[3,9,20,null,null,15,7]}
Output: 3
Input
arr ={"root":[3,9,20,null,null,15,7]}
Depth
1
Max Depth
0

3

9

20

15

7

Variables
No variables to display
DepthFunction Call
Stack empty
0/26