Skip to content

Commit d95f1c3

Browse files
authored
Apply suggestion from @cclauss
1 parent ce58ecc commit d95f1c3

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

data_structures/binary_tree/binary_tree_maximum_path_sum.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,7 @@ def construct_tree() -> TreeNode:
110110
if __name__ == "__main__":
111111
import doctest
112112

113-
tree = GetMaxPathSum(construct_tree())
114-
max_sum = tree.max_path_sum()
115-
116-
print("Given example output: ", max_sum)
117-
118113
doctest.testmod()
114+
115+
tree = GetMaxPathSum(construct_tree())
116+
print(f"{tree.max_path_sum() = }")

0 commit comments

Comments
 (0)