Minimum depth of binary tree.
Add another solution of DFS with pruning.