Skip to content

Commit d18499d

Browse files
aQuaaQua
aQua
authored and
aQua
committed
124 finish
1 parent 3780328 commit d18499d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Algorithms/0124.binary-tree-maximum-path-sum/binary-tree-maximum-path-sum.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ func maxPathSum(root *TreeNode) int {
1313

1414
maxSum := root.Val
1515

16-
// 返回,从 root 出发,包含 root 在内的所有可能路径的最大的 sum 值
1716
var dfs func(*TreeNode) int
17+
// 返回,以 root 为起点,所有可能路径的 sum 值中的最大值。
1818
dfs = func(root *TreeNode) int {
1919
if root == nil {
2020
return 0

0 commit comments

Comments
 (0)