diff --git "a/leetcode3/\354\235\264\354\247\204\355\235\254/219. Contains Duplicate II.java" "b/leetcode3/\354\235\264\354\247\204\355\235\254/219. Contains Duplicate II.java" new file mode 100644 index 00000000..e9da86b9 --- /dev/null +++ "b/leetcode3/\354\235\264\354\247\204\355\235\254/219. Contains Duplicate II.java" @@ -0,0 +1,19 @@ +class Solution { + public boolean containsNearbyDuplicate(int[] nums, int k) { + //100000 + + Setset = new HashSet<>(); + + for(int i=0; i k) { + set.remove(nums[i-k]); + } + } + + return false; + } +} \ No newline at end of file