Skip to content

Commit 3e7e4f2

Browse files
committed
solution Maximum Depth of Binary Tree (DaleStudy#227)
- DaleStudy#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)