From 4ec57cd4550eb843baaa26659f139a34cf7459a4 Mon Sep 17 00:00:00 2001 From: NevS <1173325467@qq.com> Date: Tue, 22 Jun 2021 23:03:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=200112.=E8=B7=AF=E5=BE=84?= =?UTF-8?q?=E6=80=BB=E5=92=8C=20=E6=96=87=E6=A1=A3=E7=9A=84=E5=86=99?= =?UTF-8?q?=E9=94=99=E7=9A=84=E5=9C=B0=E6=96=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- problems/0112.路径总和.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/problems/0112.路径总和.md b/problems/0112.路径总和.md index 54f79d1d..d798ca90 100644 --- a/problems/0112.路径总和.md +++ b/problems/0112.路径总和.md @@ -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;