Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1ba4975

Browse files
authored
Update 543-Diameter-of-Binary-Tree.py
Nowhere else in the repo are nested functions annotated so I guess we don't do it here either.
1 parent 500acb9 commit 1ba4975

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/543-Diameter-of-Binary-Tree.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class Solution:
88
def diameterOfBinaryTree(self, root: Optional[TreeNode]) -> int:
99
res = 0
1010

11-
def dfs(root: Optional[TreeNode]):
11+
def dfs(root):
1212
nonlocal res
1313

1414
if not root:

0 commit comments

Comments
 (0)