Skip to content

Commit 0de4758

Browse files
committed
chore: add eol
1 parent 74f2553 commit 0de4758

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

maximum-depth-of-binary-tree/froggy1014.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
*/
1616
var maxDepth = function (root) {
1717
if (!root) return 0;
18-
18+
1919
return Math.max(maxDepth(root.left), maxDepth(root.right)) + 1;
2020
};
2121

2222
console.log(maxDepth([3, 9, 20, null, null, 15, 7]));
23-
console.log(maxDepth([1, null, 2]));
23+
console.log(maxDepth([1, null, 2]));

0 commit comments

Comments
 (0)