104. Maximum Depth of Binary Tree
Idea: Follow a branch of the tree to the number of layers until the leaf node. The idea of DFS. This problem can be practiced recursively.
code
Idea: Follow a branch of the tree to the number of layers until the leaf node. The idea of DFS. This problem can be practiced recursively.
code