We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b946fb commit 0d2f50cCopy full SHA for 0d2f50c
algorithms/minimum-depth-of-binary-tree.js
@@ -47,5 +47,5 @@ function bfs(root) {
47
}
48
49
50
- return minDepth;
+ return depth;
51
0 commit comments