There was an error while loading. Please reload this page.
1 parent ce58ecc commit d95f1c3Copy full SHA for d95f1c3
1 file changed
data_structures/binary_tree/binary_tree_maximum_path_sum.py
@@ -110,9 +110,7 @@ def construct_tree() -> TreeNode:
110
if __name__ == "__main__":
111
import doctest
112
113
- tree = GetMaxPathSum(construct_tree())
114
- max_sum = tree.max_path_sum()
115
-
116
- print("Given example output: ", max_sum)
117
118
doctest.testmod()
+
+ tree = GetMaxPathSum(construct_tree())
+ print(f"{tree.max_path_sum() = }")
0 commit comments