Skip to content

Commit 071f547

Browse files
committed
104. Maximum Depth of Binary Tree
1 parent f0245ab commit 071f547

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

โ€Žmaximum-depth-of-binary-tree/okyungjin.pyโ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,4 @@ def maxDepth(self, root: Optional[TreeNode]) -> int:
7878
right_depth = self.maxDepth(root.right)
7979

8080
# ํ˜„์žฌ ์ž์‹ ์˜ ๋…ธ๋“œ ํ•˜๋‚˜๋ฅผ ๋”ํ•ด์„œ ์ตœ๋Œ€ ๊นŠ์ด๋ฅผ ๋ฐ˜ํ™˜
81-
return max(left_depth, right_depth) + 1
81+
return max(left_depth, right_depth) + 1

0 commit comments

Comments
ย (0)