diff --git a/src/main/java/cn/whaifree/leetCode/Dynamic/LeetCode516.java b/src/main/java/cn/whaifree/leetCode/Dynamic/LeetCode516.java new file mode 100644 index 0000000..72ed739 --- /dev/null +++ b/src/main/java/cn/whaifree/leetCode/Dynamic/LeetCode516.java @@ -0,0 +1,51 @@ +package cn.whaifree.leetCode.Dynamic; + +import org.junit.Test; + +/** + * @version 1.0 + * @Author whai文海 + * @Date 2024/5/2 15:57 + * @注释 + */ +public class LeetCode516 { + @Test + public void test() + { + Solution solution = new Solution(); + System.out.println(solution.longestPalindromeSubseq("bbbab")); + } + + class Solution { + /** + * 子序列 + * dp[i][j] 表示 i-j的最长回文子序列长度 + * 0 1 2 3 4 + * 0 1 + * 1 2 1 + * 2 3 2 1 + * 3 3 2 1 1 不相等取上、右边的最大值 + * 4 4 3 3 1 1 相等 取dp[i+1][j-1]+2 + * + * @param s + * @return + */ + public int longestPalindromeSubseq(String s) { + int[][] dp = new int[s.length()][s.length()]; + for (int i = 0; i < s.length(); i++) { + for (int j = i; j >= 0; j--) { + if (i == j) { + dp[i][j] = 1; + continue; + } + if (s.charAt(i) == s.charAt(j)) { + dp[i][j]= dp[i - 1][j + 1] + 2; + }else { + dp[i][j] = Math.max(dp[i - 1][j], dp[i][j + 1]); + } + } + } + return dp[s.length() - 1][0]; + } + } +} diff --git a/src/main/java/cn/whaifree/leetCode/Dynamic/LeetCode583.java b/src/main/java/cn/whaifree/leetCode/Dynamic/LeetCode583.java new file mode 100644 index 0000000..705f096 --- /dev/null +++ b/src/main/java/cn/whaifree/leetCode/Dynamic/LeetCode583.java @@ -0,0 +1,102 @@ +package cn.whaifree.leetCode.Dynamic; + +import org.junit.Test; + +/** + * @version 1.0 + * @Author whai文海 + * @Date 2024/5/2 11:14 + * @注释 + */ +public class LeetCode583 { + @Test + public void test() + { + + // "leetcode", word2 = "etco" + int i = new Solution1().minDistance("leetcode", "etco"); + System.out.println(i); + } + + class Solution { + /** + * 最长子序列的长度 + * word1.len - dp + * word2.len - dp + * @param word1 + * @param word2 + * @return + */ + public int minDistance(String word1, String word2) { + /** + * dp[i][j] 表示 word1的0-i word2的0-j 最长公共子序列的长度 + * + * '' s e a + * '' 0 0 0 0 + * e 0 0 1 1 + * a 0 0 1 2 + * t 0 0 1 2 + * + */ + + int len2 = word2.length(); + int len1 = word1.length(); + int[][] dp = new int[len1 + 1][len2 + 1]; + + for (int i = 1; i <= len1; i++) { + for (int j = 1; j <= len2; j++) { + if (word1.charAt(i - 1) == word2.charAt(j - 1)) { + dp[i][j] = dp[i - 1][j - 1] + 1; + } else { + dp[i][j] = Math.max(dp[i - 1][j], dp[i][j - 1]); + } + } + } + return len1 + len2 - (dp[len1][len2] << 1); + } + + } + + class Solution1 { + /** + * dp[i][j]:以i-1为结尾的字符串word1,和以j-1位结尾的字符串word2,想要达到相等,所需要删除元素的最少次数。 + * '' s e a + * '' 0 1 2 3 + * e 1 2 1 2 + * a 2 3 2 1 + * t 3 4 3 2 + * 等 dp[i-1][j-1] + * 不等 min(dp[i-1][j], dp[i][j-1]) + 1 + * 1. 删word1[i - 1],最少操作次数为dp[i - 1][j] + 1 + * 2. 删word2[j - 1],最少操作次数为dp[i][j - 1] + 1 + * 3. 同时删word1[i - 1]和word2[j - 1],操作的最少次数为dp[i - 1][j - 1] + 2 + * dp[i][j - 1] + 1 = dp[i - 1][j - 1] + 2 + * @param word1 + * @param word2 + * @return + */ + public int minDistance(String word1, String word2) { + int len2 = word2.length(); + int len1 = word1.length(); + int[][] dp = new int[len1 + 1][len2 + 1]; + + for (int i = 1; i <= len1; i++) { + dp[i][0] = i; + } + for (int j = 1; j <= len2; j++) { + dp[0][j] = j; + } + + for (int i = 1; i <= len1; i++) { + for (int j = 1; j <= len2; j++) { + if (word1.charAt(i - 1) == word2.charAt(j - 1)) { + dp[i][j] = dp[i - 1][j - 1]; + } else { + dp[i][j] = Math.min(dp[i - 1][j], dp[i][j - 1]) + 1; + } + } + } + return dp[len1][len2]; + } + } +} diff --git a/src/main/java/cn/whaifree/leetCode/Dynamic/LeetCode647_1.java b/src/main/java/cn/whaifree/leetCode/Dynamic/LeetCode647_1.java new file mode 100644 index 0000000..bf92c33 --- /dev/null +++ b/src/main/java/cn/whaifree/leetCode/Dynamic/LeetCode647_1.java @@ -0,0 +1,65 @@ +package cn.whaifree.leetCode.Dynamic; + +import org.junit.Test; + +/** + * @version 1.0 + * @Author whai文海 + * @Date 2024/5/2 12:00 + * @注释 + */ +public class LeetCode647_1 { + @Test + public void test() + { + String s = "abc"; + System.out.println(new Solution().countSubstrings(s)); + } + + class Solution { + /** + * + * 给你一个字符串 s ,请你统计并返回这个字符串中 回文子串 的数目 + * + * dp[i][j] 表示 i-j回文字符串的数量 + * + * dp[i][j] 由 dp[i+1][j-1]推出 + * if n[i]==n[j] + * dp[i][j] = dp[i-1][j-1]+2 + * else + * dp[i][j] = dp[i][j-1]+dp[i+1][j] + * + * abac + * '' 0 1 2 3 + * '' 0 0 0 0 0 + * 0 0 1 + * 1 0 0 1 + * 2 0 1 0 1 + * 3 0 0 0 0 1 + * + * + * @param s + * @return + */ + public int countSubstrings(String s) { + boolean[][] dp = new boolean[s.length()][s.length()]; + int res = 0; + for (int i = 0; i < s.length(); i++) { + for (int j = i; j >= 0; j--) { + if (i == j ) { + dp[i][j] = true; + res++; + continue; + } + if ((s.charAt(i) == s.charAt(j)) && (i == j + 1 || dp[i - 1][j + 1])) { + dp[i][j] = true; + res++; + } + } + } + return res; + } + } + + +} diff --git a/src/main/java/cn/whaifree/redo/redo_24_1_13/LeetCode203.java b/src/main/java/cn/whaifree/redo/redo/redo_24_1_13/LeetCode203.java similarity index 96% rename from src/main/java/cn/whaifree/redo/redo_24_1_13/LeetCode203.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_1_13/LeetCode203.java index 7343fa9..c19d7c9 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_1_13/LeetCode203.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_1_13/LeetCode203.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_1_13; +package cn.whaifree.redo.redo.redo_24_1_13; import cn.whaifree.leetCode.model.ListNode; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_1_13/LeetCode209.java b/src/main/java/cn/whaifree/redo/redo/redo_24_1_13/LeetCode209.java similarity index 95% rename from src/main/java/cn/whaifree/redo/redo_24_1_13/LeetCode209.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_1_13/LeetCode209.java index 7f4040c..f65966e 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_1_13/LeetCode209.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_1_13/LeetCode209.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_1_13; +package cn.whaifree.redo.redo.redo_24_1_13; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_1_13/LeetCode225.java b/src/main/java/cn/whaifree/redo/redo/redo_24_1_13/LeetCode225.java similarity index 97% rename from src/main/java/cn/whaifree/redo/redo_24_1_13/LeetCode225.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_1_13/LeetCode225.java index 45025d4..bb8c2f1 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_1_13/LeetCode225.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_1_13/LeetCode225.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_1_13; +package cn.whaifree.redo.redo.redo_24_1_13; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_1_13/LeetCode232.java b/src/main/java/cn/whaifree/redo/redo/redo_24_1_13/LeetCode232.java similarity index 97% rename from src/main/java/cn/whaifree/redo/redo_24_1_13/LeetCode232.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_1_13/LeetCode232.java index 4c12cb2..aae7922 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_1_13/LeetCode232.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_1_13/LeetCode232.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_1_13; +package cn.whaifree.redo.redo.redo_24_1_13; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_1_13/LeetCode239_false.java b/src/main/java/cn/whaifree/redo/redo/redo_24_1_13/LeetCode239_false.java similarity index 97% rename from src/main/java/cn/whaifree/redo/redo_24_1_13/LeetCode239_false.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_1_13/LeetCode239_false.java index 4e955fd..5b0c9e2 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_1_13/LeetCode239_false.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_1_13/LeetCode239_false.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_1_13; +package cn.whaifree.redo.redo.redo_24_1_13; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_1_13/LeetCode2487.java b/src/main/java/cn/whaifree/redo/redo/redo_24_1_13/LeetCode2487.java similarity index 96% rename from src/main/java/cn/whaifree/redo/redo_24_1_13/LeetCode2487.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_1_13/LeetCode2487.java index 05b7a7b..781ca2b 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_1_13/LeetCode2487.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_1_13/LeetCode2487.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_1_13; +package cn.whaifree.redo.redo.redo_24_1_13; import cn.whaifree.leetCode.model.ListNode; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_1_13/LeetCode28.java b/src/main/java/cn/whaifree/redo/redo/redo_24_1_13/LeetCode28.java similarity index 94% rename from src/main/java/cn/whaifree/redo/redo_24_1_13/LeetCode28.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_1_13/LeetCode28.java index 64a8aa3..b6f5fc0 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_1_13/LeetCode28.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_1_13/LeetCode28.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_1_13; +package cn.whaifree.redo.redo.redo_24_1_13; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_1_13/LeetCode287.java b/src/main/java/cn/whaifree/redo/redo/redo_24_1_13/LeetCode287.java similarity index 96% rename from src/main/java/cn/whaifree/redo/redo_24_1_13/LeetCode287.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_1_13/LeetCode287.java index 7608d8c..e0d72ff 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_1_13/LeetCode287.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_1_13/LeetCode287.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_1_13; +package cn.whaifree.redo.redo.redo_24_1_13; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_1_13/LeetCode347.java b/src/main/java/cn/whaifree/redo/redo/redo_24_1_13/LeetCode347.java similarity index 98% rename from src/main/java/cn/whaifree/redo/redo_24_1_13/LeetCode347.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_1_13/LeetCode347.java index 420e29b..11c435d 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_1_13/LeetCode347.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_1_13/LeetCode347.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_1_13; +package cn.whaifree.redo.redo.redo_24_1_13; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_1_20/LeetCode199.java b/src/main/java/cn/whaifree/redo/redo/redo_24_1_20/LeetCode199.java similarity index 97% rename from src/main/java/cn/whaifree/redo/redo_24_1_20/LeetCode199.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_1_20/LeetCode199.java index e4b51ca..34292c2 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_1_20/LeetCode199.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_1_20/LeetCode199.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_1_20; +package cn.whaifree.redo.redo.redo_24_1_20; import cn.whaifree.leetCode.model.TreeNode; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_1_20/LeetCode94.java b/src/main/java/cn/whaifree/redo/redo/redo_24_1_20/LeetCode94.java similarity index 98% rename from src/main/java/cn/whaifree/redo/redo_24_1_20/LeetCode94.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_1_20/LeetCode94.java index 1c77e6a..0207495 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_1_20/LeetCode94.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_1_20/LeetCode94.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_1_20; +package cn.whaifree.redo.redo.redo_24_1_20; import cn.whaifree.leetCode.LinkedList.LeetCode142; import cn.whaifree.leetCode.model.TreeNode; diff --git a/src/main/java/cn/whaifree/redo/redo_24_1_27/LeetCode101.java b/src/main/java/cn/whaifree/redo/redo/redo_24_1_27/LeetCode101.java similarity index 98% rename from src/main/java/cn/whaifree/redo/redo_24_1_27/LeetCode101.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_1_27/LeetCode101.java index 9543cc4..8c367e8 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_1_27/LeetCode101.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_1_27/LeetCode101.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_1_27; +package cn.whaifree.redo.redo.redo_24_1_27; import cn.whaifree.leetCode.model.TreeNode; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_1_27/LeetCode105_106.java b/src/main/java/cn/whaifree/redo/redo/redo_24_1_27/LeetCode105_106.java similarity index 98% rename from src/main/java/cn/whaifree/redo/redo_24_1_27/LeetCode105_106.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_1_27/LeetCode105_106.java index 6af8bcf..6117bae 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_1_27/LeetCode105_106.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_1_27/LeetCode105_106.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_1_27; +package cn.whaifree.redo.redo.redo_24_1_27; import cn.whaifree.leetCode.model.TreeNode; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_1_27/LeetCode110.java b/src/main/java/cn/whaifree/redo/redo/redo_24_1_27/LeetCode110.java similarity index 96% rename from src/main/java/cn/whaifree/redo/redo_24_1_27/LeetCode110.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_1_27/LeetCode110.java index 3b177c6..5790d14 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_1_27/LeetCode110.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_1_27/LeetCode110.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_1_27; +package cn.whaifree.redo.redo.redo_24_1_27; import cn.whaifree.leetCode.model.TreeNode; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_1_27/LeetCode222.java b/src/main/java/cn/whaifree/redo/redo/redo_24_1_27/LeetCode222.java similarity index 97% rename from src/main/java/cn/whaifree/redo/redo_24_1_27/LeetCode222.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_1_27/LeetCode222.java index c939954..b4a4d3a 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_1_27/LeetCode222.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_1_27/LeetCode222.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_1_27; +package cn.whaifree.redo.redo.redo_24_1_27; import cn.whaifree.leetCode.model.TreeNode; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_1_27/LeetCode257.java b/src/main/java/cn/whaifree/redo/redo/redo_24_1_27/LeetCode257.java similarity index 98% rename from src/main/java/cn/whaifree/redo/redo_24_1_27/LeetCode257.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_1_27/LeetCode257.java index 7bd17bd..142d4f3 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_1_27/LeetCode257.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_1_27/LeetCode257.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_1_27; +package cn.whaifree.redo.redo.redo_24_1_27; import cn.whaifree.leetCode.model.TreeNode; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_1_7/LeetCode15.java b/src/main/java/cn/whaifree/redo/redo/redo_24_1_7/LeetCode15.java similarity index 97% rename from src/main/java/cn/whaifree/redo/redo_24_1_7/LeetCode15.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_1_7/LeetCode15.java index db60d2a..d0d564d 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_1_7/LeetCode15.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_1_7/LeetCode15.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_1_7; +package cn.whaifree.redo.redo.redo_24_1_7; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_1_7/LeetCode151.java b/src/main/java/cn/whaifree/redo/redo/redo_24_1_7/LeetCode151.java similarity index 97% rename from src/main/java/cn/whaifree/redo/redo_24_1_7/LeetCode151.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_1_7/LeetCode151.java index 718c66e..6a10894 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_1_7/LeetCode151.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_1_7/LeetCode151.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_1_7; +package cn.whaifree.redo.redo.redo_24_1_7; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_1_7/LeetCode18.java b/src/main/java/cn/whaifree/redo/redo/redo_24_1_7/LeetCode18.java similarity index 97% rename from src/main/java/cn/whaifree/redo/redo_24_1_7/LeetCode18.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_1_7/LeetCode18.java index f259c33..13e6ae8 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_1_7/LeetCode18.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_1_7/LeetCode18.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_1_7; +package cn.whaifree.redo.redo.redo_24_1_7; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_1_7/LeetCode202.java b/src/main/java/cn/whaifree/redo/redo/redo_24_1_7/LeetCode202.java similarity index 95% rename from src/main/java/cn/whaifree/redo/redo_24_1_7/LeetCode202.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_1_7/LeetCode202.java index c128ee6..23412fb 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_1_7/LeetCode202.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_1_7/LeetCode202.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_1_7; +package cn.whaifree.redo.redo.redo_24_1_7; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_1_7/LeetCode203_false.java b/src/main/java/cn/whaifree/redo/redo/redo_24_1_7/LeetCode203_false.java similarity index 96% rename from src/main/java/cn/whaifree/redo/redo_24_1_7/LeetCode203_false.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_1_7/LeetCode203_false.java index a192cd1..3923bcf 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_1_7/LeetCode203_false.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_1_7/LeetCode203_false.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_1_7; +package cn.whaifree.redo.redo.redo_24_1_7; import cn.whaifree.leetCode.model.ListNode; diff --git a/src/main/java/cn/whaifree/redo/redo_24_1_7/LeetCode206_false.java b/src/main/java/cn/whaifree/redo/redo/redo_24_1_7/LeetCode206_false.java similarity index 95% rename from src/main/java/cn/whaifree/redo/redo_24_1_7/LeetCode206_false.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_1_7/LeetCode206_false.java index 8e7140c..9258e3c 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_1_7/LeetCode206_false.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_1_7/LeetCode206_false.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_1_7; +package cn.whaifree.redo.redo.redo_24_1_7; import cn.whaifree.leetCode.model.ListNode; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_1_7/LeetCode209_false.java b/src/main/java/cn/whaifree/redo/redo/redo_24_1_7/LeetCode209_false.java similarity index 94% rename from src/main/java/cn/whaifree/redo/redo_24_1_7/LeetCode209_false.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_1_7/LeetCode209_false.java index c64cf5a..e3935d6 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_1_7/LeetCode209_false.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_1_7/LeetCode209_false.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_1_7; +package cn.whaifree.redo.redo.redo_24_1_7; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_1_7/LeetCode2487_false.java b/src/main/java/cn/whaifree/redo/redo/redo_24_1_7/LeetCode2487_false.java similarity index 97% rename from src/main/java/cn/whaifree/redo/redo_24_1_7/LeetCode2487_false.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_1_7/LeetCode2487_false.java index 58fb5ec..7f65c74 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_1_7/LeetCode2487_false.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_1_7/LeetCode2487_false.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_1_7; +package cn.whaifree.redo.redo.redo_24_1_7; import cn.whaifree.leetCode.model.ListNode; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_1_7/LeetCode287_false.java b/src/main/java/cn/whaifree/redo/redo/redo_24_1_7/LeetCode287_false.java similarity index 96% rename from src/main/java/cn/whaifree/redo/redo_24_1_7/LeetCode287_false.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_1_7/LeetCode287_false.java index 5825718..1ea16f7 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_1_7/LeetCode287_false.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_1_7/LeetCode287_false.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_1_7; +package cn.whaifree.redo.redo.redo_24_1_7; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_1_7/LeetCode28_false.java b/src/main/java/cn/whaifree/redo/redo/redo_24_1_7/LeetCode28_false.java similarity index 93% rename from src/main/java/cn/whaifree/redo/redo_24_1_7/LeetCode28_false.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_1_7/LeetCode28_false.java index 3c7acd8..986d9b4 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_1_7/LeetCode28_false.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_1_7/LeetCode28_false.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_1_7; +package cn.whaifree.redo.redo.redo_24_1_7; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_2_18/LeetCode131.java b/src/main/java/cn/whaifree/redo/redo/redo_24_2_18/LeetCode131.java similarity index 97% rename from src/main/java/cn/whaifree/redo/redo_24_2_18/LeetCode131.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_2_18/LeetCode131.java index bc0735e..38c9699 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_2_18/LeetCode131.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_2_18/LeetCode131.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_2_18; +package cn.whaifree.redo.redo.redo_24_2_18; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_2_22/LeetCode131.java b/src/main/java/cn/whaifree/redo/redo/redo_24_2_22/LeetCode131.java similarity index 97% rename from src/main/java/cn/whaifree/redo/redo_24_2_22/LeetCode131.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_2_22/LeetCode131.java index 72a1202..ff243a1 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_2_22/LeetCode131.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_2_22/LeetCode131.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_2_22; +package cn.whaifree.redo.redo.redo_24_2_22; import org.junit.Test; import org.w3c.dom.ls.LSException; diff --git a/src/main/java/cn/whaifree/redo/redo_24_2_22/LeetCode206.java b/src/main/java/cn/whaifree/redo/redo/redo_24_2_22/LeetCode206.java similarity index 94% rename from src/main/java/cn/whaifree/redo/redo_24_2_22/LeetCode206.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_2_22/LeetCode206.java index cd67daf..91b2cf1 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_2_22/LeetCode206.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_2_22/LeetCode206.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_2_22; +package cn.whaifree.redo.redo.redo_24_2_22; import cn.whaifree.leetCode.model.ListNode; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_2_22/LeetCode222.java b/src/main/java/cn/whaifree/redo/redo/redo_24_2_22/LeetCode222.java similarity index 95% rename from src/main/java/cn/whaifree/redo/redo_24_2_22/LeetCode222.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_2_22/LeetCode222.java index 8558f78..f82a870 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_2_22/LeetCode222.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_2_22/LeetCode222.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_2_22; +package cn.whaifree.redo.redo.redo_24_2_22; import cn.whaifree.leetCode.model.TreeNode; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_2_22/LeetCode236.java b/src/main/java/cn/whaifree/redo/redo/redo_24_2_22/LeetCode236.java similarity index 96% rename from src/main/java/cn/whaifree/redo/redo_24_2_22/LeetCode236.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_2_22/LeetCode236.java index c5f9b9e..caf53ee 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_2_22/LeetCode236.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_2_22/LeetCode236.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_2_22; +package cn.whaifree.redo.redo.redo_24_2_22; import cn.whaifree.leetCode.model.TreeNode; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_2_22/LeetCode40.java b/src/main/java/cn/whaifree/redo/redo/redo_24_2_22/LeetCode40.java similarity index 97% rename from src/main/java/cn/whaifree/redo/redo_24_2_22/LeetCode40.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_2_22/LeetCode40.java index 58abe32..b066946 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_2_22/LeetCode40.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_2_22/LeetCode40.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_2_22; +package cn.whaifree.redo.redo.redo_24_2_22; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_2_22/LeetCode450.java b/src/main/java/cn/whaifree/redo/redo/redo_24_2_22/LeetCode450.java similarity index 96% rename from src/main/java/cn/whaifree/redo/redo_24_2_22/LeetCode450.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_2_22/LeetCode450.java index ae87611..edd34e5 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_2_22/LeetCode450.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_2_22/LeetCode450.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_2_22; +package cn.whaifree.redo.redo.redo_24_2_22; import cn.whaifree.leetCode.model.TreeNode; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_2_22/LeetCode46.java b/src/main/java/cn/whaifree/redo/redo/redo_24_2_22/LeetCode46.java similarity index 97% rename from src/main/java/cn/whaifree/redo/redo_24_2_22/LeetCode46.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_2_22/LeetCode46.java index a75f506..3ab7097 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_2_22/LeetCode46.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_2_22/LeetCode46.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_2_22; +package cn.whaifree.redo.redo.redo_24_2_22; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_2_22/LeetCode47.java b/src/main/java/cn/whaifree/redo/redo/redo_24_2_22/LeetCode47.java similarity index 96% rename from src/main/java/cn/whaifree/redo/redo_24_2_22/LeetCode47.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_2_22/LeetCode47.java index c796f3b..c259154 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_2_22/LeetCode47.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_2_22/LeetCode47.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_2_22; +package cn.whaifree.redo.redo.redo_24_2_22; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_2_22/LeetCode491.java b/src/main/java/cn/whaifree/redo/redo/redo_24_2_22/LeetCode491.java similarity index 96% rename from src/main/java/cn/whaifree/redo/redo_24_2_22/LeetCode491.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_2_22/LeetCode491.java index 4ccdc39..9cc0152 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_2_22/LeetCode491.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_2_22/LeetCode491.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_2_22; +package cn.whaifree.redo.redo.redo_24_2_22; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_2_22/LeetCode501.java b/src/main/java/cn/whaifree/redo/redo/redo_24_2_22/LeetCode501.java similarity index 97% rename from src/main/java/cn/whaifree/redo/redo_24_2_22/LeetCode501.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_2_22/LeetCode501.java index 1c6a1e0..1034534 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_2_22/LeetCode501.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_2_22/LeetCode501.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_2_22; +package cn.whaifree.redo.redo.redo_24_2_22; import cn.whaifree.leetCode.model.TreeNode; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_2_22/LeetCode90.java b/src/main/java/cn/whaifree/redo/redo/redo_24_2_22/LeetCode90.java similarity index 97% rename from src/main/java/cn/whaifree/redo/redo_24_2_22/LeetCode90.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_2_22/LeetCode90.java index 033547f..5794fe2 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_2_22/LeetCode90.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_2_22/LeetCode90.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_2_22; +package cn.whaifree.redo.redo.redo_24_2_22; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_2_4/LeetCode110.java b/src/main/java/cn/whaifree/redo/redo/redo_24_2_4/LeetCode110.java similarity index 95% rename from src/main/java/cn/whaifree/redo/redo_24_2_4/LeetCode110.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_2_4/LeetCode110.java index 37c1157..4307ada 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_2_4/LeetCode110.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_2_4/LeetCode110.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_2_4; +package cn.whaifree.redo.redo.redo_24_2_4; import cn.whaifree.leetCode.model.TreeNode; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_2_4/LeetCode203.java b/src/main/java/cn/whaifree/redo/redo/redo_24_2_4/LeetCode203.java similarity index 94% rename from src/main/java/cn/whaifree/redo/redo_24_2_4/LeetCode203.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_2_4/LeetCode203.java index c5ae95b..67d4a33 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_2_4/LeetCode203.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_2_4/LeetCode203.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_2_4; +package cn.whaifree.redo.redo.redo_24_2_4; import cn.whaifree.leetCode.model.ListNode; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_2_4/LeetCode206.java b/src/main/java/cn/whaifree/redo/redo/redo_24_2_4/LeetCode206.java similarity index 95% rename from src/main/java/cn/whaifree/redo/redo_24_2_4/LeetCode206.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_2_4/LeetCode206.java index 58cab4f..59a6a81 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_2_4/LeetCode206.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_2_4/LeetCode206.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_2_4; +package cn.whaifree.redo.redo.redo_24_2_4; import cn.whaifree.leetCode.model.ListNode; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_2_4/LeetCode216.java b/src/main/java/cn/whaifree/redo/redo/redo_24_2_4/LeetCode216.java similarity index 97% rename from src/main/java/cn/whaifree/redo/redo_24_2_4/LeetCode216.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_2_4/LeetCode216.java index 18ecbcf..a7578b4 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_2_4/LeetCode216.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_2_4/LeetCode216.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_2_4; +package cn.whaifree.redo.redo.redo_24_2_4; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_2_4/LeetCode222.java b/src/main/java/cn/whaifree/redo/redo/redo_24_2_4/LeetCode222.java similarity index 96% rename from src/main/java/cn/whaifree/redo/redo_24_2_4/LeetCode222.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_2_4/LeetCode222.java index 080650a..abff6e1 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_2_4/LeetCode222.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_2_4/LeetCode222.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_2_4; +package cn.whaifree.redo.redo.redo_24_2_4; import cn.whaifree.leetCode.model.TreeNode; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_2_4/LeetCode236.java b/src/main/java/cn/whaifree/redo/redo/redo_24_2_4/LeetCode236.java similarity index 96% rename from src/main/java/cn/whaifree/redo/redo_24_2_4/LeetCode236.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_2_4/LeetCode236.java index e92187c..0d4227c 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_2_4/LeetCode236.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_2_4/LeetCode236.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_2_4; +package cn.whaifree.redo.redo.redo_24_2_4; import cn.whaifree.leetCode.model.TreeNode; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_2_4/LeetCode450.java b/src/main/java/cn/whaifree/redo/redo/redo_24_2_4/LeetCode450.java similarity index 96% rename from src/main/java/cn/whaifree/redo/redo_24_2_4/LeetCode450.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_2_4/LeetCode450.java index 7af27fd..c4d1015 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_2_4/LeetCode450.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_2_4/LeetCode450.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_2_4; +package cn.whaifree.redo.redo.redo_24_2_4; import cn.whaifree.leetCode.model.TreeNode; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_2_4/LeetCode501.java b/src/main/java/cn/whaifree/redo/redo/redo_24_2_4/LeetCode501.java similarity index 97% rename from src/main/java/cn/whaifree/redo/redo_24_2_4/LeetCode501.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_2_4/LeetCode501.java index a4f5248..24a6164 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_2_4/LeetCode501.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_2_4/LeetCode501.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_2_4; +package cn.whaifree.redo.redo.redo_24_2_4; import cn.whaifree.leetCode.model.TreeNode; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_2_4/LeetCode701.java b/src/main/java/cn/whaifree/redo/redo/redo_24_2_4/LeetCode701.java similarity index 97% rename from src/main/java/cn/whaifree/redo/redo_24_2_4/LeetCode701.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_2_4/LeetCode701.java index 5efe0c0..45f853f 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_2_4/LeetCode701.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_2_4/LeetCode701.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_2_4; +package cn.whaifree.redo.redo.redo_24_2_4; import cn.whaifree.leetCode.model.TreeNode; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_2_4/LeetCode77.java b/src/main/java/cn/whaifree/redo/redo/redo_24_2_4/LeetCode77.java similarity index 97% rename from src/main/java/cn/whaifree/redo/redo_24_2_4/LeetCode77.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_2_4/LeetCode77.java index c525d1f..6c4fb97 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_2_4/LeetCode77.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_2_4/LeetCode77.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_2_4; +package cn.whaifree.redo.redo.redo_24_2_4; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_3_1/LeetCode1005.java b/src/main/java/cn/whaifree/redo/redo/redo_24_3_1/LeetCode1005.java similarity index 97% rename from src/main/java/cn/whaifree/redo/redo_24_3_1/LeetCode1005.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_3_1/LeetCode1005.java index 49a5654..a8fe355 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_3_1/LeetCode1005.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_3_1/LeetCode1005.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_3_1; +package cn.whaifree.redo.redo.redo_24_3_1; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_3_1/LeetCode122.java b/src/main/java/cn/whaifree/redo/redo/redo_24_3_1/LeetCode122.java similarity index 93% rename from src/main/java/cn/whaifree/redo/redo_24_3_1/LeetCode122.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_3_1/LeetCode122.java index a5dddce..bcbe812 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_3_1/LeetCode122.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_3_1/LeetCode122.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_3_1; +package cn.whaifree.redo.redo.redo_24_3_1; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_3_1/LeetCode134.java b/src/main/java/cn/whaifree/redo/redo/redo_24_3_1/LeetCode134.java similarity index 97% rename from src/main/java/cn/whaifree/redo/redo_24_3_1/LeetCode134.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_3_1/LeetCode134.java index f28eddd..1250dcf 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_3_1/LeetCode134.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_3_1/LeetCode134.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_3_1; +package cn.whaifree.redo.redo.redo_24_3_1; import org.junit.Test; @@ -12,7 +12,7 @@ public class LeetCode134 { public static void main(String[] args) { - + } @Test diff --git a/src/main/java/cn/whaifree/redo/redo_24_3_1/LeetCode135.java b/src/main/java/cn/whaifree/redo/redo/redo_24_3_1/LeetCode135.java similarity index 96% rename from src/main/java/cn/whaifree/redo/redo_24_3_1/LeetCode135.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_3_1/LeetCode135.java index 6fce19d..4aa540a 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_3_1/LeetCode135.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_3_1/LeetCode135.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_3_1; +package cn.whaifree.redo.redo.redo_24_3_1; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_3_1/LeetCode376.java b/src/main/java/cn/whaifree/redo/redo/redo_24_3_1/LeetCode376.java similarity index 95% rename from src/main/java/cn/whaifree/redo/redo_24_3_1/LeetCode376.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_3_1/LeetCode376.java index cf5f349..5227547 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_3_1/LeetCode376.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_3_1/LeetCode376.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_3_1; +package cn.whaifree.redo.redo.redo_24_3_1; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_3_1/LeetCode406.java b/src/main/java/cn/whaifree/redo/redo/redo_24_3_1/LeetCode406.java similarity index 99% rename from src/main/java/cn/whaifree/redo/redo_24_3_1/LeetCode406.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_3_1/LeetCode406.java index db3a3ce..9c2e922 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_3_1/LeetCode406.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_3_1/LeetCode406.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_3_1; +package cn.whaifree.redo.redo.redo_24_3_1; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_3_1/LeetCode45.java b/src/main/java/cn/whaifree/redo/redo/redo_24_3_1/LeetCode45.java similarity index 96% rename from src/main/java/cn/whaifree/redo/redo_24_3_1/LeetCode45.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_3_1/LeetCode45.java index 3a70444..72dc643 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_3_1/LeetCode45.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_3_1/LeetCode45.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_3_1; +package cn.whaifree.redo.redo.redo_24_3_1; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_3_1/LeetCode491.java b/src/main/java/cn/whaifree/redo/redo/redo_24_3_1/LeetCode491.java similarity index 96% rename from src/main/java/cn/whaifree/redo/redo_24_3_1/LeetCode491.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_3_1/LeetCode491.java index dac8e6e..444262a 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_3_1/LeetCode491.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_3_1/LeetCode491.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_3_1; +package cn.whaifree.redo.redo.redo_24_3_1; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_3_1/LeetCode51.java b/src/main/java/cn/whaifree/redo/redo/redo_24_3_1/LeetCode51.java similarity index 98% rename from src/main/java/cn/whaifree/redo/redo_24_3_1/LeetCode51.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_3_1/LeetCode51.java index e349252..ca98e78 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_3_1/LeetCode51.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_3_1/LeetCode51.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_3_1; +package cn.whaifree.redo.redo.redo_24_3_1; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_3_1/LeetCode53.java b/src/main/java/cn/whaifree/redo/redo/redo_24_3_1/LeetCode53.java similarity index 95% rename from src/main/java/cn/whaifree/redo/redo_24_3_1/LeetCode53.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_3_1/LeetCode53.java index ab8adfd..9914ad8 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_3_1/LeetCode53.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_3_1/LeetCode53.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_3_1; +package cn.whaifree.redo.redo.redo_24_3_1; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_3_1/LeetCode55.java b/src/main/java/cn/whaifree/redo/redo/redo_24_3_1/LeetCode55.java similarity index 94% rename from src/main/java/cn/whaifree/redo/redo_24_3_1/LeetCode55.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_3_1/LeetCode55.java index 5250f66..60f06e1 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_3_1/LeetCode55.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_3_1/LeetCode55.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_3_1; +package cn.whaifree.redo.redo.redo_24_3_1; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_3_1/LeetCode860.java b/src/main/java/cn/whaifree/redo/redo/redo_24_3_1/LeetCode860.java similarity index 95% rename from src/main/java/cn/whaifree/redo/redo_24_3_1/LeetCode860.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_3_1/LeetCode860.java index 9494239..778bde7 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_3_1/LeetCode860.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_3_1/LeetCode860.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_3_1; +package cn.whaifree.redo.redo.redo_24_3_1; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_3_16/LeetCode236.java b/src/main/java/cn/whaifree/redo/redo/redo_24_3_16/LeetCode236.java similarity index 95% rename from src/main/java/cn/whaifree/redo/redo_24_3_16/LeetCode236.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_3_16/LeetCode236.java index 1097bf5..cd10f79 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_3_16/LeetCode236.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_3_16/LeetCode236.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_3_16; +package cn.whaifree.redo.redo.redo_24_3_16; import cn.whaifree.leetCode.model.TreeNode; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_3_16/LeetCode343.java b/src/main/java/cn/whaifree/redo/redo/redo_24_3_16/LeetCode343.java similarity index 95% rename from src/main/java/cn/whaifree/redo/redo_24_3_16/LeetCode343.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_3_16/LeetCode343.java index 025c926..b22a942 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_3_16/LeetCode343.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_3_16/LeetCode343.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_3_16; +package cn.whaifree.redo.redo.redo_24_3_16; /** * @version 1.0 diff --git a/src/main/java/cn/whaifree/redo/redo_24_3_16/LeetCode376.java b/src/main/java/cn/whaifree/redo/redo/redo_24_3_16/LeetCode376.java similarity index 95% rename from src/main/java/cn/whaifree/redo/redo_24_3_16/LeetCode376.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_3_16/LeetCode376.java index f1532c8..de4a1b5 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_3_16/LeetCode376.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_3_16/LeetCode376.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_3_16; +package cn.whaifree.redo.redo.redo_24_3_16; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_3_16/LeetCode416.java b/src/main/java/cn/whaifree/redo/redo/redo_24_3_16/LeetCode416.java similarity index 98% rename from src/main/java/cn/whaifree/redo/redo_24_3_16/LeetCode416.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_3_16/LeetCode416.java index 4ea3fab..d4e4b36 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_3_16/LeetCode416.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_3_16/LeetCode416.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_3_16; +package cn.whaifree.redo.redo.redo_24_3_16; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_3_16/LeetCode435.java b/src/main/java/cn/whaifree/redo/redo/redo_24_3_16/LeetCode435.java similarity index 97% rename from src/main/java/cn/whaifree/redo/redo_24_3_16/LeetCode435.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_3_16/LeetCode435.java index 85fab1b..4e051d1 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_3_16/LeetCode435.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_3_16/LeetCode435.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_3_16; +package cn.whaifree.redo.redo.redo_24_3_16; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_3_16/LeetCode45.java b/src/main/java/cn/whaifree/redo/redo/redo_24_3_16/LeetCode45.java similarity index 95% rename from src/main/java/cn/whaifree/redo/redo_24_3_16/LeetCode45.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_3_16/LeetCode45.java index 319d44a..0f686ec 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_3_16/LeetCode45.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_3_16/LeetCode45.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_3_16; +package cn.whaifree.redo.redo.redo_24_3_16; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_3_16/LeetCode738.java b/src/main/java/cn/whaifree/redo/redo/redo_24_3_16/LeetCode738.java similarity index 95% rename from src/main/java/cn/whaifree/redo/redo_24_3_16/LeetCode738.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_3_16/LeetCode738.java index 55a1e11..a3fe7f1 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_3_16/LeetCode738.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_3_16/LeetCode738.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_3_16; +package cn.whaifree.redo.redo.redo_24_3_16; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_3_16/LeetCode763.java b/src/main/java/cn/whaifree/redo/redo/redo_24_3_16/LeetCode763.java similarity index 96% rename from src/main/java/cn/whaifree/redo/redo_24_3_16/LeetCode763.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_3_16/LeetCode763.java index dbda280..a74c4e4 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_3_16/LeetCode763.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_3_16/LeetCode763.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_3_16; +package cn.whaifree.redo.redo.redo_24_3_16; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_3_16/LeetCode96.java b/src/main/java/cn/whaifree/redo/redo/redo_24_3_16/LeetCode96.java similarity index 94% rename from src/main/java/cn/whaifree/redo/redo_24_3_16/LeetCode96.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_3_16/LeetCode96.java index 67d0593..a89fc21 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_3_16/LeetCode96.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_3_16/LeetCode96.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_3_16; +package cn.whaifree.redo.redo.redo_24_3_16; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_3_16/LeetCode968.java b/src/main/java/cn/whaifree/redo/redo/redo_24_3_16/LeetCode968.java similarity index 97% rename from src/main/java/cn/whaifree/redo/redo_24_3_16/LeetCode968.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_3_16/LeetCode968.java index adff026..fff1d79 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_3_16/LeetCode968.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_3_16/LeetCode968.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_3_16; +package cn.whaifree.redo.redo.redo_24_3_16; import cn.whaifree.leetCode.model.TreeNode; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_3_24/LCR001.java b/src/main/java/cn/whaifree/redo/redo/redo_24_3_24/LCR001.java similarity index 98% rename from src/main/java/cn/whaifree/redo/redo_24_3_24/LCR001.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_3_24/LCR001.java index 0bfe340..27f9bf0 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_3_24/LCR001.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_3_24/LCR001.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_3_24; +package cn.whaifree.redo.redo.redo_24_3_24; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_3_24/LCR090.java b/src/main/java/cn/whaifree/redo/redo/redo_24_3_24/LCR090.java similarity index 96% rename from src/main/java/cn/whaifree/redo/redo_24_3_24/LCR090.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_3_24/LCR090.java index a4e2cf2..59429f6 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_3_24/LCR090.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_3_24/LCR090.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_3_24; +package cn.whaifree.redo.redo.redo_24_3_24; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_3_24/LeetCode005.java b/src/main/java/cn/whaifree/redo/redo/redo_24_3_24/LeetCode005.java similarity index 98% rename from src/main/java/cn/whaifree/redo/redo_24_3_24/LeetCode005.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_3_24/LeetCode005.java index 490f632..012349d 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_3_24/LeetCode005.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_3_24/LeetCode005.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_3_24; +package cn.whaifree.redo.redo.redo_24_3_24; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_3_24/LeetCode1049.java b/src/main/java/cn/whaifree/redo/redo/redo_24_3_24/LeetCode1049.java similarity index 97% rename from src/main/java/cn/whaifree/redo/redo_24_3_24/LeetCode1049.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_3_24/LeetCode1049.java index 63e32f7..e9e188e 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_3_24/LeetCode1049.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_3_24/LeetCode1049.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_3_24; +package cn.whaifree.redo.redo.redo_24_3_24; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_3_24/LeetCode343.java b/src/main/java/cn/whaifree/redo/redo/redo_24_3_24/LeetCode343.java similarity index 96% rename from src/main/java/cn/whaifree/redo/redo_24_3_24/LeetCode343.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_3_24/LeetCode343.java index c564792..a7ceb57 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_3_24/LeetCode343.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_3_24/LeetCode343.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_3_24; +package cn.whaifree.redo.redo.redo_24_3_24; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_3_24/LeetCode416.java b/src/main/java/cn/whaifree/redo/redo/redo_24_3_24/LeetCode416.java similarity index 98% rename from src/main/java/cn/whaifree/redo/redo_24_3_24/LeetCode416.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_3_24/LeetCode416.java index 93b4edc..5582b23 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_3_24/LeetCode416.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_3_24/LeetCode416.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_3_24; +package cn.whaifree.redo.redo.redo_24_3_24; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_3_24/LeetCode45.java b/src/main/java/cn/whaifree/redo/redo/redo_24_3_24/LeetCode45.java similarity index 96% rename from src/main/java/cn/whaifree/redo/redo_24_3_24/LeetCode45.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_3_24/LeetCode45.java index d0139b2..1bbdf58 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_3_24/LeetCode45.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_3_24/LeetCode45.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_3_24; +package cn.whaifree.redo.redo.redo_24_3_24; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_3_24/LeetCode647.java b/src/main/java/cn/whaifree/redo/redo/redo_24_3_24/LeetCode647.java similarity index 97% rename from src/main/java/cn/whaifree/redo/redo_24_3_24/LeetCode647.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_3_24/LeetCode647.java index 6f9b063..af04617 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_3_24/LeetCode647.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_3_24/LeetCode647.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_3_24; +package cn.whaifree.redo.redo.redo_24_3_24; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_3_24/LeetCode713.java b/src/main/java/cn/whaifree/redo/redo/redo_24_3_24/LeetCode713.java similarity index 95% rename from src/main/java/cn/whaifree/redo/redo_24_3_24/LeetCode713.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_3_24/LeetCode713.java index 900d0f7..aa05a90 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_3_24/LeetCode713.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_3_24/LeetCode713.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_3_24; +package cn.whaifree.redo.redo.redo_24_3_24; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_3_24/LeetCode738.java b/src/main/java/cn/whaifree/redo/redo/redo_24_3_24/LeetCode738.java similarity index 95% rename from src/main/java/cn/whaifree/redo/redo_24_3_24/LeetCode738.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_3_24/LeetCode738.java index 027e7e4..4b45c9a 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_3_24/LeetCode738.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_3_24/LeetCode738.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_3_24; +package cn.whaifree.redo.redo.redo_24_3_24; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_3_24/LeetCode96.java b/src/main/java/cn/whaifree/redo/redo/redo_24_3_24/LeetCode96.java similarity index 96% rename from src/main/java/cn/whaifree/redo/redo_24_3_24/LeetCode96.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_3_24/LeetCode96.java index 8ccb60f..c5e6572 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_3_24/LeetCode96.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_3_24/LeetCode96.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_3_24; +package cn.whaifree.redo.redo.redo_24_3_24; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_3_9/LeetCode134.java b/src/main/java/cn/whaifree/redo/redo/redo_24_3_9/LeetCode134.java similarity index 96% rename from src/main/java/cn/whaifree/redo/redo_24_3_9/LeetCode134.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_3_9/LeetCode134.java index 4aa1a7c..2bcd6b8 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_3_9/LeetCode134.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_3_9/LeetCode134.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_3_9; +package cn.whaifree.redo.redo.redo_24_3_9; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_3_9/LeetCode236.java b/src/main/java/cn/whaifree/redo/redo/redo_24_3_9/LeetCode236.java similarity index 96% rename from src/main/java/cn/whaifree/redo/redo_24_3_9/LeetCode236.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_3_9/LeetCode236.java index 65c3cf2..d1540df 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_3_9/LeetCode236.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_3_9/LeetCode236.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_3_9; +package cn.whaifree.redo.redo.redo_24_3_9; import cn.whaifree.leetCode.model.TreeNode; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_3_9/LeetCode376.java b/src/main/java/cn/whaifree/redo/redo/redo_24_3_9/LeetCode376.java similarity index 95% rename from src/main/java/cn/whaifree/redo/redo_24_3_9/LeetCode376.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_3_9/LeetCode376.java index 8f0f71c..552b161 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_3_9/LeetCode376.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_3_9/LeetCode376.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_3_9; +package cn.whaifree.redo.redo.redo_24_3_9; /** * @version 1.0 diff --git a/src/main/java/cn/whaifree/redo/redo_24_3_9/LeetCode435.java b/src/main/java/cn/whaifree/redo/redo/redo_24_3_9/LeetCode435.java similarity index 98% rename from src/main/java/cn/whaifree/redo/redo_24_3_9/LeetCode435.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_3_9/LeetCode435.java index 1cb8c52..95693b3 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_3_9/LeetCode435.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_3_9/LeetCode435.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_3_9; +package cn.whaifree.redo.redo.redo_24_3_9; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_3_9/LeetCode45.java b/src/main/java/cn/whaifree/redo/redo/redo_24_3_9/LeetCode45.java similarity index 96% rename from src/main/java/cn/whaifree/redo/redo_24_3_9/LeetCode45.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_3_9/LeetCode45.java index 625e811..125ccac 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_3_9/LeetCode45.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_3_9/LeetCode45.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_3_9; +package cn.whaifree.redo.redo.redo_24_3_9; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_3_9/LeetCode450.java b/src/main/java/cn/whaifree/redo/redo/redo_24_3_9/LeetCode450.java similarity index 96% rename from src/main/java/cn/whaifree/redo/redo_24_3_9/LeetCode450.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_3_9/LeetCode450.java index 377da5b..bd6a340 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_3_9/LeetCode450.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_3_9/LeetCode450.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_3_9; +package cn.whaifree.redo.redo.redo_24_3_9; import cn.whaifree.leetCode.model.TreeNode; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_3_9/LeetCode452.java b/src/main/java/cn/whaifree/redo/redo/redo_24_3_9/LeetCode452.java similarity index 96% rename from src/main/java/cn/whaifree/redo/redo_24_3_9/LeetCode452.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_3_9/LeetCode452.java index 019efa1..4707d57 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_3_9/LeetCode452.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_3_9/LeetCode452.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_3_9; +package cn.whaifree.redo.redo.redo_24_3_9; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_3_9/LeetCode509.java b/src/main/java/cn/whaifree/redo/redo/redo_24_3_9/LeetCode509.java similarity index 94% rename from src/main/java/cn/whaifree/redo/redo_24_3_9/LeetCode509.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_3_9/LeetCode509.java index 7e8c9ed..5cb800c 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_3_9/LeetCode509.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_3_9/LeetCode509.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_3_9; +package cn.whaifree.redo.redo.redo_24_3_9; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_3_9/LeetCode738.java b/src/main/java/cn/whaifree/redo/redo/redo_24_3_9/LeetCode738.java similarity index 96% rename from src/main/java/cn/whaifree/redo/redo_24_3_9/LeetCode738.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_3_9/LeetCode738.java index 964b453..80ee6a6 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_3_9/LeetCode738.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_3_9/LeetCode738.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_3_9; +package cn.whaifree.redo.redo.redo_24_3_9; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_3_9/LeetCode763.java b/src/main/java/cn/whaifree/redo/redo/redo_24_3_9/LeetCode763.java similarity index 96% rename from src/main/java/cn/whaifree/redo/redo_24_3_9/LeetCode763.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_3_9/LeetCode763.java index 28ea623..b1ad0b9 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_3_9/LeetCode763.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_3_9/LeetCode763.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_3_9; +package cn.whaifree.redo.redo.redo_24_3_9; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_3_9/LeetCode968.java b/src/main/java/cn/whaifree/redo/redo/redo_24_3_9/LeetCode968.java similarity index 97% rename from src/main/java/cn/whaifree/redo/redo_24_3_9/LeetCode968.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_3_9/LeetCode968.java index 1b1c8fe..eb21ab8 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_3_9/LeetCode968.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_3_9/LeetCode968.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_3_9; +package cn.whaifree.redo.redo.redo_24_3_9; import cn.whaifree.leetCode.model.TreeNode; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_4_1/LeetCode209.java b/src/main/java/cn/whaifree/redo/redo/redo_24_4_1/LeetCode209.java similarity index 97% rename from src/main/java/cn/whaifree/redo/redo_24_4_1/LeetCode209.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_4_1/LeetCode209.java index 1d6f22d..fe39187 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_4_1/LeetCode209.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_4_1/LeetCode209.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_4_1; +package cn.whaifree.redo.redo.redo_24_4_1; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_4_1/LeetCode2602.java b/src/main/java/cn/whaifree/redo/redo/redo_24_4_1/LeetCode2602.java similarity index 97% rename from src/main/java/cn/whaifree/redo/redo_24_4_1/LeetCode2602.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_4_1/LeetCode2602.java index 2566231..2f800f6 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_4_1/LeetCode2602.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_4_1/LeetCode2602.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_4_1; +package cn.whaifree.redo.redo.redo_24_4_1; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_4_1/LeetCode279.java b/src/main/java/cn/whaifree/redo/redo/redo_24_4_1/LeetCode279.java similarity index 97% rename from src/main/java/cn/whaifree/redo/redo_24_4_1/LeetCode279.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_4_1/LeetCode279.java index 290f320..3ee6753 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_4_1/LeetCode279.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_4_1/LeetCode279.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_4_1; +package cn.whaifree.redo.redo.redo_24_4_1; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_4_1/LeetCode322.java b/src/main/java/cn/whaifree/redo/redo/redo_24_4_1/LeetCode322.java similarity index 96% rename from src/main/java/cn/whaifree/redo/redo_24_4_1/LeetCode322.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_4_1/LeetCode322.java index 50bb77c..d526724 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_4_1/LeetCode322.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_4_1/LeetCode322.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_4_1; +package cn.whaifree.redo.redo.redo_24_4_1; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_4_1/LeetCode377.java b/src/main/java/cn/whaifree/redo/redo/redo_24_4_1/LeetCode377.java similarity index 95% rename from src/main/java/cn/whaifree/redo/redo_24_4_1/LeetCode377.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_4_1/LeetCode377.java index b1240f7..1496f40 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_4_1/LeetCode377.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_4_1/LeetCode377.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_4_1; +package cn.whaifree.redo.redo.redo_24_4_1; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_4_1/LeetCode474.java b/src/main/java/cn/whaifree/redo/redo/redo_24_4_1/LeetCode474.java similarity index 97% rename from src/main/java/cn/whaifree/redo/redo_24_4_1/LeetCode474.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_4_1/LeetCode474.java index c576bc7..ff41e86 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_4_1/LeetCode474.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_4_1/LeetCode474.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_4_1; +package cn.whaifree.redo.redo.redo_24_4_1; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_4_1/LeetCode494.java b/src/main/java/cn/whaifree/redo/redo/redo_24_4_1/LeetCode494.java similarity index 96% rename from src/main/java/cn/whaifree/redo/redo_24_4_1/LeetCode494.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_4_1/LeetCode494.java index 8b569e1..ee58888 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_4_1/LeetCode494.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_4_1/LeetCode494.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_4_1; +package cn.whaifree.redo.redo.redo_24_4_1; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_4_1/LeetCode53.java b/src/main/java/cn/whaifree/redo/redo/redo_24_4_1/LeetCode53.java similarity index 98% rename from src/main/java/cn/whaifree/redo/redo_24_4_1/LeetCode53.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_4_1/LeetCode53.java index 19fe657..1c1da10 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_4_1/LeetCode53.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_4_1/LeetCode53.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_4_1; +package cn.whaifree.redo.redo.redo_24_4_1; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_4_1/PaLouTi.java b/src/main/java/cn/whaifree/redo/redo/redo_24_4_1/PaLouTi.java similarity index 97% rename from src/main/java/cn/whaifree/redo/redo_24_4_1/PaLouTi.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_4_1/PaLouTi.java index bce727f..61b10bc 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_4_1/PaLouTi.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_4_1/PaLouTi.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_4_1; +package cn.whaifree.redo.redo.redo_24_4_1; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_4_13/LeetCode23.java b/src/main/java/cn/whaifree/redo/redo/redo_24_4_13/LeetCode23.java similarity index 97% rename from src/main/java/cn/whaifree/redo/redo_24_4_13/LeetCode23.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_4_13/LeetCode23.java index 7ce2243..aadc45c 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_4_13/LeetCode23.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_4_13/LeetCode23.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_4_13; +package cn.whaifree.redo.redo.redo_24_4_13; import cn.whaifree.leetCode.model.ListNode; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_4_13/LeetCode32.java b/src/main/java/cn/whaifree/redo/redo/redo_24_4_13/LeetCode32.java similarity index 98% rename from src/main/java/cn/whaifree/redo/redo_24_4_13/LeetCode32.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_4_13/LeetCode32.java index e1e8606..7029a06 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_4_13/LeetCode32.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_4_13/LeetCode32.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_4_13; +package cn.whaifree.redo.redo.redo_24_4_13; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_4_13/LeetCode337.java b/src/main/java/cn/whaifree/redo/redo/redo_24_4_13/LeetCode337.java similarity index 96% rename from src/main/java/cn/whaifree/redo/redo_24_4_13/LeetCode337.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_4_13/LeetCode337.java index 533e4db..95d47fe 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_4_13/LeetCode337.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_4_13/LeetCode337.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_4_13; +package cn.whaifree.redo.redo.redo_24_4_13; import cn.whaifree.leetCode.model.TreeNode; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_4_13/LeetCode42.java b/src/main/java/cn/whaifree/redo/redo/redo_24_4_13/LeetCode42.java similarity index 98% rename from src/main/java/cn/whaifree/redo/redo_24_4_13/LeetCode42.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_4_13/LeetCode42.java index 0e9cd5b..3cbba0b 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_4_13/LeetCode42.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_4_13/LeetCode42.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_4_13; +package cn.whaifree.redo.redo.redo_24_4_13; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_4_13/LeetCode496.java b/src/main/java/cn/whaifree/redo/redo/redo_24_4_13/LeetCode496.java similarity index 96% rename from src/main/java/cn/whaifree/redo/redo_24_4_13/LeetCode496.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_4_13/LeetCode496.java index f6703e4..9747bf8 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_4_13/LeetCode496.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_4_13/LeetCode496.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_4_13; +package cn.whaifree.redo.redo.redo_24_4_13; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_4_13/LeetCode503.java b/src/main/java/cn/whaifree/redo/redo/redo_24_4_13/LeetCode503.java similarity index 96% rename from src/main/java/cn/whaifree/redo/redo_24_4_13/LeetCode503.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_4_13/LeetCode503.java index b15b156..1ab64b1 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_4_13/LeetCode503.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_4_13/LeetCode503.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_4_13; +package cn.whaifree.redo.redo.redo_24_4_13; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_4_13/LeetCode739.java b/src/main/java/cn/whaifree/redo/redo/redo_24_4_13/LeetCode739.java similarity index 96% rename from src/main/java/cn/whaifree/redo/redo_24_4_13/LeetCode739.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_4_13/LeetCode739.java index 481ac52..ff2edb0 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_4_13/LeetCode739.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_4_13/LeetCode739.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_4_13; +package cn.whaifree.redo.redo.redo_24_4_13; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_4_13/LeetCode84.java b/src/main/java/cn/whaifree/redo/redo/redo_24_4_13/LeetCode84.java similarity index 98% rename from src/main/java/cn/whaifree/redo/redo_24_4_13/LeetCode84.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_4_13/LeetCode84.java index 4f43771..caa6b69 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_4_13/LeetCode84.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_4_13/LeetCode84.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_4_13; +package cn.whaifree.redo.redo.redo_24_4_13; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_4_20/LeetCode32.java b/src/main/java/cn/whaifree/redo/redo/redo_24_4_20/LeetCode32.java similarity index 98% rename from src/main/java/cn/whaifree/redo/redo_24_4_20/LeetCode32.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_4_20/LeetCode32.java index 084e279..93dda17 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_4_20/LeetCode32.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_4_20/LeetCode32.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_4_20; +package cn.whaifree.redo.redo.redo_24_4_20; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_4_20/LeetCode337.java b/src/main/java/cn/whaifree/redo/redo/redo_24_4_20/LeetCode337.java similarity index 96% rename from src/main/java/cn/whaifree/redo/redo_24_4_20/LeetCode337.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_4_20/LeetCode337.java index ed326df..1aef669 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_4_20/LeetCode337.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_4_20/LeetCode337.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_4_20; +package cn.whaifree.redo.redo.redo_24_4_20; import cn.whaifree.leetCode.model.TreeNode; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_4_20/LeetCode5.java b/src/main/java/cn/whaifree/redo/redo/redo_24_4_20/LeetCode5.java similarity index 98% rename from src/main/java/cn/whaifree/redo/redo_24_4_20/LeetCode5.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_4_20/LeetCode5.java index b865e3e..b8d303e 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_4_20/LeetCode5.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_4_20/LeetCode5.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_4_20; +package cn.whaifree.redo.redo.redo_24_4_20; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_4_20/LeetCode647.java b/src/main/java/cn/whaifree/redo/redo/redo_24_4_20/LeetCode647.java similarity index 95% rename from src/main/java/cn/whaifree/redo/redo_24_4_20/LeetCode647.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_4_20/LeetCode647.java index aca5b78..f3ae4a9 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_4_20/LeetCode647.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_4_20/LeetCode647.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_4_20; +package cn.whaifree.redo.redo.redo_24_4_20; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_4_20/LeetCode69.java b/src/main/java/cn/whaifree/redo/redo/redo_24_4_20/LeetCode69.java similarity index 97% rename from src/main/java/cn/whaifree/redo/redo_24_4_20/LeetCode69.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_4_20/LeetCode69.java index c2e4416..2fadfcb 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_4_20/LeetCode69.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_4_20/LeetCode69.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_4_20; +package cn.whaifree.redo.redo.redo_24_4_20; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_4_20/LeetCode75.java b/src/main/java/cn/whaifree/redo/redo/redo_24_4_20/LeetCode75.java similarity index 98% rename from src/main/java/cn/whaifree/redo/redo_24_4_20/LeetCode75.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_4_20/LeetCode75.java index 32629c9..7b4e3c4 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_4_20/LeetCode75.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_4_20/LeetCode75.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_4_20; +package cn.whaifree.redo.redo.redo_24_4_20; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_4_20/LeetCode84.java b/src/main/java/cn/whaifree/redo/redo/redo_24_4_20/LeetCode84.java similarity index 98% rename from src/main/java/cn/whaifree/redo/redo_24_4_20/LeetCode84.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_4_20/LeetCode84.java index 004a84b..c5e5dbb 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_4_20/LeetCode84.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_4_20/LeetCode84.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_4_20; +package cn.whaifree.redo.redo.redo_24_4_20; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_4_27/LeetCode1143.java b/src/main/java/cn/whaifree/redo/redo/redo_24_4_27/LeetCode1143.java similarity index 96% rename from src/main/java/cn/whaifree/redo/redo_24_4_27/LeetCode1143.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_4_27/LeetCode1143.java index cd84040..6cefc91 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_4_27/LeetCode1143.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_4_27/LeetCode1143.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_4_27; +package cn.whaifree.redo.redo.redo_24_4_27; import org.junit.Test; @@ -14,6 +14,7 @@ public class LeetCode1143 { System.out.println(new Solution().longestCommonSubsequence("abcde", "ace")); } + class Solution { public int longestCommonSubsequence(String text1, String text2) { /** diff --git a/src/main/java/cn/whaifree/redo/redo_24_4_27/LeetCode115.java b/src/main/java/cn/whaifree/redo/redo/redo_24_4_27/LeetCode115.java similarity index 97% rename from src/main/java/cn/whaifree/redo/redo_24_4_27/LeetCode115.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_4_27/LeetCode115.java index 86450a7..11da786 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_4_27/LeetCode115.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_4_27/LeetCode115.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_4_27; +package cn.whaifree.redo.redo.redo_24_4_27; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_4_27/LeetCode300.java b/src/main/java/cn/whaifree/redo/redo/redo_24_4_27/LeetCode300.java similarity index 96% rename from src/main/java/cn/whaifree/redo/redo_24_4_27/LeetCode300.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_4_27/LeetCode300.java index 776373b..da7b672 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_4_27/LeetCode300.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_4_27/LeetCode300.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_4_27; +package cn.whaifree.redo.redo.redo_24_4_27; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_4_27/LeetCode33.java b/src/main/java/cn/whaifree/redo/redo/redo_24_4_27/LeetCode33.java similarity index 97% rename from src/main/java/cn/whaifree/redo/redo_24_4_27/LeetCode33.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_4_27/LeetCode33.java index 2bfe4c2..1b840f3 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_4_27/LeetCode33.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_4_27/LeetCode33.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_4_27; +package cn.whaifree.redo.redo.redo_24_4_27; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_4_27/LeetCode392.java b/src/main/java/cn/whaifree/redo/redo/redo_24_4_27/LeetCode392.java similarity index 97% rename from src/main/java/cn/whaifree/redo/redo_24_4_27/LeetCode392.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_4_27/LeetCode392.java index b101df7..1c119de 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_4_27/LeetCode392.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_4_27/LeetCode392.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_4_27; +package cn.whaifree.redo.redo.redo_24_4_27; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_4_27/LeetCode674.java b/src/main/java/cn/whaifree/redo/redo/redo_24_4_27/LeetCode674.java similarity index 95% rename from src/main/java/cn/whaifree/redo/redo_24_4_27/LeetCode674.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_4_27/LeetCode674.java index afe656b..ef7106f 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_4_27/LeetCode674.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_4_27/LeetCode674.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_4_27; +package cn.whaifree.redo.redo.redo_24_4_27; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_4_27/LeetCode69.java b/src/main/java/cn/whaifree/redo/redo/redo_24_4_27/LeetCode69.java similarity index 95% rename from src/main/java/cn/whaifree/redo/redo_24_4_27/LeetCode69.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_4_27/LeetCode69.java index 3f0678c..101be30 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_4_27/LeetCode69.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_4_27/LeetCode69.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_4_27; +package cn.whaifree.redo.redo.redo_24_4_27; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_4_27/LeetCode718.java b/src/main/java/cn/whaifree/redo/redo/redo_24_4_27/LeetCode718.java similarity index 97% rename from src/main/java/cn/whaifree/redo/redo_24_4_27/LeetCode718.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_4_27/LeetCode718.java index f90efd2..c53b31a 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_4_27/LeetCode718.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_4_27/LeetCode718.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_4_27; +package cn.whaifree.redo.redo.redo_24_4_27; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_4_27/LeetCode72.java b/src/main/java/cn/whaifree/redo/redo/redo_24_4_27/LeetCode72.java similarity index 98% rename from src/main/java/cn/whaifree/redo/redo_24_4_27/LeetCode72.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_4_27/LeetCode72.java index cabbfa4..a68f391 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_4_27/LeetCode72.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_4_27/LeetCode72.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_4_27; +package cn.whaifree.redo.redo.redo_24_4_27; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_4_27/LeetCode75.java b/src/main/java/cn/whaifree/redo/redo/redo_24_4_27/LeetCode75.java similarity index 94% rename from src/main/java/cn/whaifree/redo/redo_24_4_27/LeetCode75.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_4_27/LeetCode75.java index 5105fb8..b1d179c 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_4_27/LeetCode75.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_4_27/LeetCode75.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_4_27; +package cn.whaifree.redo.redo.redo_24_4_27; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_4_27/LeetCode912.java b/src/main/java/cn/whaifree/redo/redo/redo_24_4_27/LeetCode912.java similarity index 97% rename from src/main/java/cn/whaifree/redo/redo_24_4_27/LeetCode912.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_4_27/LeetCode912.java index 03a50fe..d8bcd84 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_4_27/LeetCode912.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_4_27/LeetCode912.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_4_27; +package cn.whaifree.redo.redo.redo_24_4_27; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_4_6/LeetCode11.java b/src/main/java/cn/whaifree/redo/redo/redo_24_4_6/LeetCode11.java similarity index 95% rename from src/main/java/cn/whaifree/redo/redo_24_4_6/LeetCode11.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_4_6/LeetCode11.java index 21fa75a..f6d0153 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_4_6/LeetCode11.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_4_6/LeetCode11.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_4_6; +package cn.whaifree.redo.redo.redo_24_4_6; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_4_6/LeetCode121.java b/src/main/java/cn/whaifree/redo/redo/redo_24_4_6/LeetCode121.java similarity index 97% rename from src/main/java/cn/whaifree/redo/redo_24_4_6/LeetCode121.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_4_6/LeetCode121.java index 6de77e3..bad3e03 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_4_6/LeetCode121.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_4_6/LeetCode121.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_4_6; +package cn.whaifree.redo.redo.redo_24_4_6; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_4_6/LeetCode21.java b/src/main/java/cn/whaifree/redo/redo/redo_24_4_6/LeetCode21.java similarity index 97% rename from src/main/java/cn/whaifree/redo/redo_24_4_6/LeetCode21.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_4_6/LeetCode21.java index ec9ca78..97df53d 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_4_6/LeetCode21.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_4_6/LeetCode21.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_4_6; +package cn.whaifree.redo.redo.redo_24_4_6; import cn.whaifree.leetCode.model.ListNode; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_4_6/LeetCode22.java b/src/main/java/cn/whaifree/redo/redo/redo_24_4_6/LeetCode22.java similarity index 97% rename from src/main/java/cn/whaifree/redo/redo_24_4_6/LeetCode22.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_4_6/LeetCode22.java index bd0846f..75b97d9 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_4_6/LeetCode22.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_4_6/LeetCode22.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_4_6; +package cn.whaifree.redo.redo.redo_24_4_6; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/redo/redo_24_4_6/LeetCode31.java b/src/main/java/cn/whaifree/redo/redo/redo_24_4_6/LeetCode31.java similarity index 97% rename from src/main/java/cn/whaifree/redo/redo_24_4_6/LeetCode31.java rename to src/main/java/cn/whaifree/redo/redo/redo_24_4_6/LeetCode31.java index acded2d..ba9e7ac 100644 --- a/src/main/java/cn/whaifree/redo/redo_24_4_6/LeetCode31.java +++ b/src/main/java/cn/whaifree/redo/redo/redo_24_4_6/LeetCode31.java @@ -1,4 +1,4 @@ -package cn.whaifree.redo.redo_24_4_6; +package cn.whaifree.redo.redo.redo_24_4_6; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/test/DePattern.java b/src/main/java/cn/whaifree/test/DePattern.java index fe7706a..52eb92b 100644 --- a/src/main/java/cn/whaifree/test/DePattern.java +++ b/src/main/java/cn/whaifree/test/DePattern.java @@ -11,6 +11,11 @@ import java.io.FileNotFoundException; * @注释 */ public class DePattern { + /** + * + * @param args + * @throws FileNotFoundException + */ public static void main(String[] args) throws FileNotFoundException { // 创建一个 FileInputStream 对象,用于读取文件 diff --git a/src/main/java/cn/whaifree/test/lambda/func.java b/src/main/java/cn/whaifree/test/lambda/func.java new file mode 100644 index 0000000..e61b59e --- /dev/null +++ b/src/main/java/cn/whaifree/test/lambda/func.java @@ -0,0 +1,87 @@ +package cn.whaifree.test.lambda; + +import java.util.concurrent.Callable; +import java.util.concurrent.FutureTask; + +/** + * @version 1.0 + * @Author whai文海 + * @Date 2024/5/9 18:12 + * @注释 + */ +@FunctionalInterface +public interface func { + + public String doSome(); +} + +class b{ + // 创建一个线程局部变量threadLocal1,并设置其初始值为10 + private static ThreadLocal threadLocal1 = ThreadLocal.withInitial(() -> 10); + // 创建一个线程局部变量threadLocal2,并设置其初始值为"Hello" + private static ThreadLocal threadLocal2 = ThreadLocal.withInitial(() -> "Hello"); + + public static void main(String[] args) { + // 创建一个新线程thread,并为其指定一个Runnable实现 + Thread thread = new Thread(() -> { + try { + Thread.sleep(1000); + } catch (InterruptedException e) { + throw new RuntimeException(e); + } + // 获取threadLocal1的值 + int value1 = threadLocal1.get(); // 放入Thread的Map key 为ThreadLocal value为10 + // 获取threadLocal2的值 + String value2 = threadLocal2.get(); // 放入Thread的Map key 为ThreadLocal value为Hello + // 打印threadLocal1的值 + System.out.println("ThreadLocal1: " + value1); + // 打印threadLocal2的值 + System.out.println("ThreadLocal2: " + value2); + }); + + + + // 创建一个新线程thread,并为其指定一个Runnable实现 + Thread thread2 = new Thread(() -> { + threadLocal1.set(100000); + // 获取threadLocal1的值 + int value1 = threadLocal1.get(); // 放入Thread的Map key 为ThreadLocal value为10 + // 获取threadLocal2的值 + String value2 = threadLocal2.get(); // 放入Thread的Map key 为ThreadLocal value为Hello + // 打印threadLocal1的值 + System.out.println("ThreadLocal1: " + value1); + // 打印threadLocal2的值 + System.out.println("ThreadLocal2: " + value2); + }); + + // 启动线程thread + thread.start(); + // 启动线程thread + thread2.start(); + } +} + + + + +class fu{ + public static void main(String[] args) { + + Callable callable = new Callable() { + @Override + public Object call() throws Exception { + System.out.println("call"); + return "1234"; + } + }; + FutureTask futureTask = new FutureTask<>(callable); + Thread thread = new Thread(futureTask); + thread.start(); + while (!futureTask.isDone()) { + System.out.println("2222"); + } + + + func func = () -> "123"; + } +} diff --git a/src/main/java/cn/whaifree/test/strategyPartern/test.java b/src/main/java/cn/whaifree/test/strategyPartern/test.java new file mode 100644 index 0000000..bb547f8 --- /dev/null +++ b/src/main/java/cn/whaifree/test/strategyPartern/test.java @@ -0,0 +1,24 @@ +package cn.whaifree.test.strategyPartern; + +/** + * @version 1.0 + * @Author whai文海 + * @Date 2024/5/2 18:41 + * @注释 + */ +public class test { + + + + +} + + + + + + + + + + diff --git a/src/test/java/cn/whaifree/test/DePatternTest.java b/src/test/java/cn/whaifree/test/DePatternTest.java new file mode 100644 index 0000000..e4b8894 --- /dev/null +++ b/src/test/java/cn/whaifree/test/DePatternTest.java @@ -0,0 +1,24 @@ +package cn.whaifree.test; + +import org.junit.Test; + +import java.io.FileNotFoundException; + +public class DePatternTest { + + @Test + public void testMain() throws Exception { + // Setup + // Run the test + DePattern.main(new String[]{"args"}); + + // Verify the results + } + + @Test(expected = FileNotFoundException.class) + public void testMain_ThrowsFileNotFoundException() throws Exception { + // Setup + // Run the test + DePattern.main(new String[]{"args"}); + } +}