We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ea2c0d commit 3e7e4f2Copy full SHA for 3e7e4f2
โmaximum-depth-of-binary-tree/jiji-hoon96.tsโ
@@ -26,4 +26,4 @@ function maxDepth(root: TreeNode | null): number {
26
27
// ํ์ฌ ๋ ธ๋์ ๊น์ด๋ ์ผ์ชฝ๊ณผ ์ค๋ฅธ์ชฝ ์๋ธํธ๋ฆฌ ์ค ๋ ๊น์ ๊ฒ์ 1์ ๋ํ ๊ฐ
28
return Math.max(leftDepth, rightDepth) + 1;
29
-}
+}
0 commit comments