Skip to content

Commit

Permalink
fix: max_path_sum had bad bug keon#758
Browse files Browse the repository at this point in the history
  • Loading branch information
thestar19 committed Mar 3, 2021
1 parent 587f1df commit f47e922
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion algorithms/tree/max_path_sum.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
def max_path_sum(root):
maximum = float("-inf")
helper(root, maximum)
maximum = helper(root, maximum)
return maximum


Expand Down

0 comments on commit f47e922

Please sign in to comment.