Skip to content

Commit 831289d

Browse files
refactor 219
1 parent 002f0b6 commit 831289d

File tree

1 file changed

+0
-18
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+0
-18
lines changed

src/main/java/com/fishercoder/solutions/_219.java

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,6 @@
55
import java.util.Map;
66
import java.util.Set;
77

8-
/**
9-
* 219. Contains Duplicate II
10-
Given an array of integers and an integer k,
11-
find out whether there are two distinct indices i and j in the array
12-
such that nums[i] = nums[j] and the absolute difference between i and j is at most k.
13-
14-
Example 1:
15-
Input: nums = [1,2,3,1], k = 3
16-
Output: true
17-
18-
Example 2:
19-
Input: nums = [1,0,1,1], k = 1
20-
Output: true
21-
22-
Example 3:
23-
Input: nums = [1,2,3,1,2,3], k = 2
24-
Output: false
25-
*/
268
public class _219 {
279

2810
public static class Solution1 {

0 commit comments

Comments
 (0)