Description
1 | Given a binary tree, find its maximum depth. |
DFS with Recursion
1 | # Definition for a binary tree node. |
BFS
1 | # Definition for a binary tree node. |
DFS
1 | # Definition for a binary tree node. |
1 | Given a binary tree, find its maximum depth. |
1 | # Definition for a binary tree node. |
1 | # Definition for a binary tree node. |
1 | # Definition for a binary tree node. |