Skip to content

Commit 95c9f15

Browse files
authored
def max_sum_bst(root: TreeNode | None) -> int:
1 parent d290a9c commit 95c9f15

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
@@ -14,7 +14,7 @@ class TreeNode:
1414
right: TreeNode | None = None
1515

1616

17-
def max_sum_bst(root: TreeNode) -> int:
17+
def max_sum_bst(root: TreeNode | None) -> int:
1818
"""
1919
The solution traverses a binary tree to find the maximum sum of
2020
keys in any subtree that is a Binary Search Tree (BST). It uses

0 commit comments

Comments
 (0)