Skip to content

Commit 01fea69

Browse files
committed
Pass second test case for duplicate two problem
1 parent a5de493 commit 01fea69

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/leetcode/datastructure/duplicate/two/SolutionTest.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,10 @@ void shouldPassWithExample1() {
1111
Assertions.assertTrue(solution.containsNearbyDuplicate(new int[]{1, 2, 3, 1}, 3));
1212
}
1313

14+
@Test
15+
void shouldPassWithExample2() {
16+
Solution solution = new Solution();
17+
Assertions.assertTrue(solution.containsNearbyDuplicate(new int[]{1, 0, 1, 1}, 1));
18+
}
1419

1520
}

0 commit comments

Comments
 (0)