Skip to content

Commit 0d2f50c

Browse files
committed
fix typo
1 parent 6b946fb commit 0d2f50c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

algorithms/minimum-depth-of-binary-tree.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,5 @@ function bfs(root) {
4747
}
4848
}
4949

50-
return minDepth;
50+
return depth;
5151
}

0 commit comments

Comments
 (0)