Skip to content

Commit

Permalink
124 finish
Browse files Browse the repository at this point in the history
  • Loading branch information
aQua authored and aQua committed Sep 15, 2017
1 parent 3780328 commit d18499d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ func maxPathSum(root *TreeNode) int {

maxSum := root.Val

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

0 comments on commit d18499d

Please sign in to comment.