Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
soulmachine committed Oct 22, 2017
1 parent 0f3dbc1 commit 89e779f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cpp/dp/house-robber-iii.md
Expand Up @@ -36,7 +36,7 @@ Maximum amount of money the thief can rob = 4 + 5 = 9.

`f(root) = max{f(root.left) + f(root.right), g(root.left)+g(root.right) + root.val}`

`g(root) = max{f(root.left), f(root.right)}`
`g(root) = f(root.left) + f(root.right)`


### 代码
Expand Down
2 changes: 1 addition & 1 deletion java/dp/house-robber-iii.md
Expand Up @@ -36,7 +36,7 @@ Maximum amount of money the thief can rob = 4 + 5 = 9.

`f(root) = max{f(root.left) + f(root.right), g(root.left)+g(root.right) + root.val}`

`g(root) = max{f(root.left), f(root.right)}`
`g(root) = f(root.left) + f(root.right)`


### 代码
Expand Down

0 comments on commit 89e779f

Please sign in to comment.