Merge pull request #429 from betNevS/master

更新 0112.路径总和 文档的写错的地方
This commit is contained in:
程序员Carl 2021-06-23 09:46:27 +08:00 committed by GitHub
commit f8047a82a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ if (cur->left) { // 左
}
if (cur->right) { // 右
count -= cur->right->val;
if (traversal(cur->right, count - cur->right->val)) return true;
if (traversal(cur->right, count)) return true;
count += cur->right->val;
}
return false;