Skip to content

Commit f30de49

Browse files
Merge pull request #2347 from jycoast/master
修复337.打家劫舍 III 注释错别字“又孩子”为“右孩子”
2 parents c1ee28d + b19af70 commit f30de49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

problems/0337.打家劫舍III.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ class Solution {
266266

267267
// 3.状态标记递归
268268
// 执行用时:0 ms , 在所有 Java 提交中击败了 100% 的用户
269-
// 不偷:Max(左孩子不偷,左孩子偷) + Max(又孩子不偷,右孩子偷)
269+
// 不偷:Max(左孩子不偷,左孩子偷) + Max(右孩子不偷,右孩子偷)
270270
// root[0] = Math.max(rob(root.left)[0], rob(root.left)[1]) +
271271
// Math.max(rob(root.right)[0], rob(root.right)[1])
272272
// 偷:左孩子不偷+ 右孩子不偷 + 当前节点偷

0 commit comments

Comments
 (0)