From 3d1843da4a89a2d0121bb3ebfc7365408fdae3b2 Mon Sep 17 00:00:00 2001 From: bourne-3 <595962708@qq.com> Date: Tue, 7 Sep 2021 12:20:01 +0800 Subject: [PATCH] =?UTF-8?q?=C2=96129=E6=B1=82=E6=A0=B9=E8=8A=82=E7=82=B9?= =?UTF-8?q?=E7=9A=84=E5=8F=B6=E8=8A=82=E7=82=B9=E6=95=B0=E5=AD=97=E4=B9=8B?= =?UTF-8?q?=E5=92=8CJava=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- problems/0129.求根到叶子节点数字之和.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/problems/0129.求根到叶子节点数字之和.md b/problems/0129.求根到叶子节点数字之和.md index a330991e..7f50c885 100644 --- a/problems/0129.求根到叶子节点数字之和.md +++ b/problems/0129.求根到叶子节点数字之和.md @@ -168,7 +168,6 @@ Java: class Solution { List path = new ArrayList<>(); int res = 0; - public int sumNumbers(TreeNode root) { // 如果节点为0,那么就返回0 if (root == null) return 0; @@ -200,7 +199,6 @@ class Solution { } return; } - public int listToInt(List path){ int sum = 0; for (Integer num:path){