diff --git a/src/main/java/cn/whaifree/leetCode/middle/LeetCode209.java b/src/main/java/cn/whaifree/leetCode/Array/LeetCode209.java similarity index 98% rename from src/main/java/cn/whaifree/leetCode/middle/LeetCode209.java rename to src/main/java/cn/whaifree/leetCode/Array/LeetCode209.java index 838a30f..64c8b47 100644 --- a/src/main/java/cn/whaifree/leetCode/middle/LeetCode209.java +++ b/src/main/java/cn/whaifree/leetCode/Array/LeetCode209.java @@ -1,4 +1,4 @@ -package cn.whaifree.leetCode.middle; +package cn.whaifree.leetCode.Array; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/leetCode/easy/LeetCode26.java b/src/main/java/cn/whaifree/leetCode/Array/LeetCode26.java similarity index 98% rename from src/main/java/cn/whaifree/leetCode/easy/LeetCode26.java rename to src/main/java/cn/whaifree/leetCode/Array/LeetCode26.java index f0fbaec..5de03d6 100644 --- a/src/main/java/cn/whaifree/leetCode/easy/LeetCode26.java +++ b/src/main/java/cn/whaifree/leetCode/Array/LeetCode26.java @@ -1,4 +1,4 @@ -package cn.whaifree.leetCode.easy; +package cn.whaifree.leetCode.Array; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/leetCode/easy/LeetCode27.java b/src/main/java/cn/whaifree/leetCode/Array/LeetCode27.java similarity index 98% rename from src/main/java/cn/whaifree/leetCode/easy/LeetCode27.java rename to src/main/java/cn/whaifree/leetCode/Array/LeetCode27.java index a46b304..577c617 100644 --- a/src/main/java/cn/whaifree/leetCode/easy/LeetCode27.java +++ b/src/main/java/cn/whaifree/leetCode/Array/LeetCode27.java @@ -1,4 +1,4 @@ -package cn.whaifree.leetCode.easy; +package cn.whaifree.leetCode.Array; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/leetCode/middle/LeetCode34.java b/src/main/java/cn/whaifree/leetCode/Array/LeetCode34.java similarity index 98% rename from src/main/java/cn/whaifree/leetCode/middle/LeetCode34.java rename to src/main/java/cn/whaifree/leetCode/Array/LeetCode34.java index 54dbe6c..92e2f15 100644 --- a/src/main/java/cn/whaifree/leetCode/middle/LeetCode34.java +++ b/src/main/java/cn/whaifree/leetCode/Array/LeetCode34.java @@ -1,4 +1,4 @@ -package cn.whaifree.leetCode.middle; +package cn.whaifree.leetCode.Array; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/leetCode/easy/LeetCode35.java b/src/main/java/cn/whaifree/leetCode/Array/LeetCode35.java similarity index 98% rename from src/main/java/cn/whaifree/leetCode/easy/LeetCode35.java rename to src/main/java/cn/whaifree/leetCode/Array/LeetCode35.java index 14566ee..4967351 100644 --- a/src/main/java/cn/whaifree/leetCode/easy/LeetCode35.java +++ b/src/main/java/cn/whaifree/leetCode/Array/LeetCode35.java @@ -1,4 +1,4 @@ -package cn.whaifree.leetCode.easy; +package cn.whaifree.leetCode.Array; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/leetCode/easy/LeetCode367.java b/src/main/java/cn/whaifree/leetCode/Array/LeetCode367.java similarity index 97% rename from src/main/java/cn/whaifree/leetCode/easy/LeetCode367.java rename to src/main/java/cn/whaifree/leetCode/Array/LeetCode367.java index 413c0b9..98612fa 100644 --- a/src/main/java/cn/whaifree/leetCode/easy/LeetCode367.java +++ b/src/main/java/cn/whaifree/leetCode/Array/LeetCode367.java @@ -1,9 +1,7 @@ -package cn.whaifree.leetCode.easy; +package cn.whaifree.leetCode.Array; import org.junit.Test; -import java.text.Format; - import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; diff --git a/src/main/java/cn/whaifree/leetCode/middle/LeetCode54.java b/src/main/java/cn/whaifree/leetCode/Array/LeetCode54.java similarity index 99% rename from src/main/java/cn/whaifree/leetCode/middle/LeetCode54.java rename to src/main/java/cn/whaifree/leetCode/Array/LeetCode54.java index 671b1f1..c33c17d 100644 --- a/src/main/java/cn/whaifree/leetCode/middle/LeetCode54.java +++ b/src/main/java/cn/whaifree/leetCode/Array/LeetCode54.java @@ -1,4 +1,4 @@ -package cn.whaifree.leetCode.middle; +package cn.whaifree.leetCode.Array; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/leetCode/middle/LeetCode59.java b/src/main/java/cn/whaifree/leetCode/Array/LeetCode59.java similarity index 97% rename from src/main/java/cn/whaifree/leetCode/middle/LeetCode59.java rename to src/main/java/cn/whaifree/leetCode/Array/LeetCode59.java index 2c2546a..510441b 100644 --- a/src/main/java/cn/whaifree/leetCode/middle/LeetCode59.java +++ b/src/main/java/cn/whaifree/leetCode/Array/LeetCode59.java @@ -1,4 +1,4 @@ -package cn.whaifree.leetCode.middle; +package cn.whaifree.leetCode.Array; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/leetCode/easy/LeetCode69.java b/src/main/java/cn/whaifree/leetCode/Array/LeetCode69.java similarity index 97% rename from src/main/java/cn/whaifree/leetCode/easy/LeetCode69.java rename to src/main/java/cn/whaifree/leetCode/Array/LeetCode69.java index a2cb9de..ed27632 100644 --- a/src/main/java/cn/whaifree/leetCode/easy/LeetCode69.java +++ b/src/main/java/cn/whaifree/leetCode/Array/LeetCode69.java @@ -1,4 +1,4 @@ -package cn.whaifree.leetCode.easy; +package cn.whaifree.leetCode.Array; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/leetCode/easy/LeetCode704.java b/src/main/java/cn/whaifree/leetCode/Array/LeetCode704.java similarity index 99% rename from src/main/java/cn/whaifree/leetCode/easy/LeetCode704.java rename to src/main/java/cn/whaifree/leetCode/Array/LeetCode704.java index 1ee15b7..e4b863c 100644 --- a/src/main/java/cn/whaifree/leetCode/easy/LeetCode704.java +++ b/src/main/java/cn/whaifree/leetCode/Array/LeetCode704.java @@ -1,4 +1,4 @@ -package cn.whaifree.leetCode.easy; +package cn.whaifree.leetCode.Array; import org.junit.Assert; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/leetCode/easy/LeetCode977.java b/src/main/java/cn/whaifree/leetCode/Array/LeetCode977.java similarity index 99% rename from src/main/java/cn/whaifree/leetCode/easy/LeetCode977.java rename to src/main/java/cn/whaifree/leetCode/Array/LeetCode977.java index 38a8e18..fd6652a 100644 --- a/src/main/java/cn/whaifree/leetCode/easy/LeetCode977.java +++ b/src/main/java/cn/whaifree/leetCode/Array/LeetCode977.java @@ -1,4 +1,4 @@ -package cn.whaifree.leetCode.easy; +package cn.whaifree.leetCode.Array; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/leetCode/LeetCode001.java b/src/main/java/cn/whaifree/leetCode/LeetCode001.java index 1b1927b..3504933 100644 --- a/src/main/java/cn/whaifree/leetCode/LeetCode001.java +++ b/src/main/java/cn/whaifree/leetCode/LeetCode001.java @@ -2,6 +2,9 @@ package cn.whaifree.leetCode; import java.util.HashMap; import java.util.Map; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.locks.Lock; +import java.util.concurrent.locks.ReentrantLock; /** * @@ -29,6 +32,8 @@ import java.util.Map; public class LeetCode001 { + + /** * map存储,key为nums内的值,value为下标 * @param nums diff --git a/src/main/java/cn/whaifree/leetCode/easy/LeetCode203.java b/src/main/java/cn/whaifree/leetCode/LinkedList/LeetCode203.java similarity index 99% rename from src/main/java/cn/whaifree/leetCode/easy/LeetCode203.java rename to src/main/java/cn/whaifree/leetCode/LinkedList/LeetCode203.java index c88c6b8..e2c8b8f 100644 --- a/src/main/java/cn/whaifree/leetCode/easy/LeetCode203.java +++ b/src/main/java/cn/whaifree/leetCode/LinkedList/LeetCode203.java @@ -1,4 +1,4 @@ -package cn.whaifree.leetCode.easy; +package cn.whaifree.leetCode.LinkedList; import cn.whaifree.leetCode.model.ListNode; diff --git a/src/main/java/cn/whaifree/leetCode/easy/LeetCode206.java b/src/main/java/cn/whaifree/leetCode/LinkedList/LeetCode206.java similarity index 98% rename from src/main/java/cn/whaifree/leetCode/easy/LeetCode206.java rename to src/main/java/cn/whaifree/leetCode/LinkedList/LeetCode206.java index e73bc64..3611672 100644 --- a/src/main/java/cn/whaifree/leetCode/easy/LeetCode206.java +++ b/src/main/java/cn/whaifree/leetCode/LinkedList/LeetCode206.java @@ -1,4 +1,4 @@ -package cn.whaifree.leetCode.easy; +package cn.whaifree.leetCode.LinkedList; import cn.whaifree.leetCode.model.ListNode; import com.sun.jmx.remote.internal.ArrayQueue; diff --git a/src/main/java/cn/whaifree/leetCode/middle/LeetCode24.java b/src/main/java/cn/whaifree/leetCode/LinkedList/LeetCode24.java similarity index 98% rename from src/main/java/cn/whaifree/leetCode/middle/LeetCode24.java rename to src/main/java/cn/whaifree/leetCode/LinkedList/LeetCode24.java index 3aa792b..da8f13f 100644 --- a/src/main/java/cn/whaifree/leetCode/middle/LeetCode24.java +++ b/src/main/java/cn/whaifree/leetCode/LinkedList/LeetCode24.java @@ -1,4 +1,4 @@ -package cn.whaifree.leetCode.middle; +package cn.whaifree.leetCode.LinkedList; import org.junit.Test; import cn.whaifree.leetCode.model.ListNode; diff --git a/src/main/java/cn/whaifree/leetCode/middle/LeetCode707.java b/src/main/java/cn/whaifree/leetCode/LinkedList/LeetCode707.java similarity index 99% rename from src/main/java/cn/whaifree/leetCode/middle/LeetCode707.java rename to src/main/java/cn/whaifree/leetCode/LinkedList/LeetCode707.java index 51f1fe5..173b94f 100644 --- a/src/main/java/cn/whaifree/leetCode/middle/LeetCode707.java +++ b/src/main/java/cn/whaifree/leetCode/LinkedList/LeetCode707.java @@ -1,4 +1,4 @@ -package cn.whaifree.leetCode.middle; +package cn.whaifree.leetCode.LinkedList; import org.junit.Test; diff --git a/src/main/java/cn/whaifree/leetCode/middle/LeetCode707_2.java b/src/main/java/cn/whaifree/leetCode/LinkedList/LeetCode707_2.java similarity index 99% rename from src/main/java/cn/whaifree/leetCode/middle/LeetCode707_2.java rename to src/main/java/cn/whaifree/leetCode/LinkedList/LeetCode707_2.java index 131d071..66d601e 100644 --- a/src/main/java/cn/whaifree/leetCode/middle/LeetCode707_2.java +++ b/src/main/java/cn/whaifree/leetCode/LinkedList/LeetCode707_2.java @@ -1,4 +1,4 @@ -package cn.whaifree.leetCode.middle; +package cn.whaifree.leetCode.LinkedList; import org.junit.Test;