111. Minimum Depth of Binary Tree
# Easy
This must be recursive problem, I sovled it in DFS.
The key is to think about the edge case and regular case.
Time complexity = , space complexity = . Because every node is traversalled and ervery node only stores its minimun depth.
Last updated