更新 0112.路径总和 文档的写错的地方

This commit is contained in:
NevS 2021-06-22 23:03:46 +08:00 committed by GitHub
parent ab002e7a30
commit 4ec57cd455
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;