From d8c464a5434b23e8f66cfda166cbd16ae62af17e Mon Sep 17 00:00:00 2001 From: yennanliu Date: Tue, 5 Mar 2024 09:08:49 +0800 Subject: [PATCH] update 100 java, progress --- data/progress.txt | 3 ++- data/to_review.txt | 27 +++++++++++-------- .../java/LeetCodeJava/Recursion/SameTree.java | 3 ++- 3 files changed, 20 insertions(+), 13 deletions(-) diff --git a/data/progress.txt b/data/progress.txt index 57dcb75d..90f11c6f 100644 --- a/data/progress.txt +++ b/data/progress.txt @@ -1,4 +1,5 @@ -20240304: 73,76,79(again),91 +20240305: 100 +20240304: 73,76,79(again),91,25 20240303: 55(again),56,62,70 20240229: 39,48(again),49,53,54 20240228: 20,21,23,33(again) diff --git a/data/to_review.txt b/data/to_review.txt index 4d5e1575..1d91fb18 100644 --- a/data/to_review.txt +++ b/data/to_review.txt @@ -1,28 +1,33 @@ -2024-04-28 -> ['73,76,79(again),91'] +2024-04-29 -> ['100'] +2024-04-28 -> ['73,76,79(again),91,25'] 2024-04-27 -> ['55(again),56,62,70'] 2024-04-24 -> ['39,48(again),49,53,54'] 2024-04-23 -> ['20,21,23,33(again)'] 2024-04-22 -> ['1,3,5,4,19'] -2024-04-07 -> ['73,76,79(again),91'] +2024-04-08 -> ['100'] +2024-04-07 -> ['73,76,79(again),91,25'] 2024-04-06 -> ['55(again),56,62,70'] 2024-04-03 -> ['39,48(again),49,53,54'] 2024-04-02 -> ['20,21,23,33(again)'] 2024-04-01 -> ['1,3,5,4,19'] -2024-03-25 -> ['73,76,79(again),91'] +2024-03-26 -> ['100'] +2024-03-25 -> ['73,76,79(again),91,25'] 2024-03-24 -> ['55(again),56,62,70'] 2024-03-21 -> ['39,48(again),49,53,54'] 2024-03-20 -> ['20,21,23,33(again)'] 2024-03-19 -> ['1,3,5,4,19'] -2024-03-17 -> ['73,76,79(again),91'] +2024-03-18 -> ['100'] +2024-03-17 -> ['73,76,79(again),91,25'] 2024-03-16 -> ['55(again),56,62,70'] -2024-03-13 -> ['39,48(again),49,53,54'] -2024-03-12 -> ['73,76,79(again),91', '20,21,23,33(again)'] +2024-03-13 -> ['100', '39,48(again),49,53,54'] +2024-03-12 -> ['73,76,79(again),91,25', '20,21,23,33(again)'] 2024-03-11 -> ['55(again),56,62,70', '1,3,5,4,19'] -2024-03-09 -> ['73,76,79(again),91'] -2024-03-08 -> ['55(again),56,62,70', '39,48(again),49,53,54'] -2024-03-07 -> ['73,76,79(again),91', '20,21,23,33(again)'] -2024-03-06 -> ['73,76,79(again),91', '55(again),56,62,70', '1,3,5,4,19'] -2024-03-05 -> ['73,76,79(again),91', '55(again),56,62,70', '39,48(again),49,53,54'] +2024-03-10 -> ['100'] +2024-03-09 -> ['73,76,79(again),91,25'] +2024-03-08 -> ['100', '55(again),56,62,70', '39,48(again),49,53,54'] +2024-03-07 -> ['100', '73,76,79(again),91,25', '20,21,23,33(again)'] +2024-03-06 -> ['100', '73,76,79(again),91,25', '55(again),56,62,70', '1,3,5,4,19'] +2024-03-05 -> ['73,76,79(again),91,25', '55(again),56,62,70', '39,48(again),49,53,54'] 2024-03-04 -> ['55(again),56,62,70', '20,21,23,33(again)'] 2024-03-03 -> ['39,48(again),49,53,54', '1,3,5,4,19'] 2024-03-02 -> ['39,48(again),49,53,54', '20,21,23,33(again)'] diff --git a/leetcode_java/src/main/java/LeetCodeJava/Recursion/SameTree.java b/leetcode_java/src/main/java/LeetCodeJava/Recursion/SameTree.java index fda833c4..f31244b2 100644 --- a/leetcode_java/src/main/java/LeetCodeJava/Recursion/SameTree.java +++ b/leetcode_java/src/main/java/LeetCodeJava/Recursion/SameTree.java @@ -24,7 +24,8 @@ public boolean isSameTree(TreeNode p, TreeNode q) { return false; } - return check(p.left, q.left) && check(p.right, q.right); + //return check(p.left, q.left) && check(p.right, q.right); + return check(p, q); // this one is OK as well } private Boolean check(TreeNode t1, TreeNode t2){