Skip to content

Commit 3e7e4f2

Browse files
committed
solution Maximum Depth of Binary Tree (#227)
- #227
1 parent 8ea2c0d commit 3e7e4f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

โ€Žmaximum-depth-of-binary-tree/jiji-hoon96.tsโ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ function maxDepth(root: TreeNode | null): number {
2626

2727
// ํ˜„์žฌ ๋…ธ๋“œ์˜ ๊นŠ์ด๋Š” ์™ผ์ชฝ๊ณผ ์˜ค๋ฅธ์ชฝ ์„œ๋ธŒํŠธ๋ฆฌ ์ค‘ ๋” ๊นŠ์€ ๊ฒƒ์— 1์„ ๋”ํ•œ ๊ฐ’
2828
return Math.max(leftDepth, rightDepth) + 1;
29-
}
29+
}

0 commit comments

Comments
ย (0)