Skip to content

Commit 619aef8

Browse files
authored
def solver(node: TreeNode | None) -> tuple[bool, int, int, int]:
1 parent 95c9f15 commit 619aef8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

data_structures/binary_tree/maximum_sum_bst.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def max_sum_bst(root: TreeNode | None) -> int:
4646
"""
4747
ans: int = 0
4848

49-
def solver(node: TreeNode) -> tuple[bool, int, int, int]:
49+
def solver(node: TreeNode | None) -> tuple[bool, int, int, int]:
5050
"""
5151
Returns the maximum sum by making recursive calls
5252
>>> t1 = TreeNode(1)

0 commit comments

Comments
 (0)