Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd173505

Browse files
committed
Third test case pass for duplicate two problem
1 parent01fea69 commitd173505

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,10 @@ void shouldPassWithExample2() {
1717
Assertions.assertTrue(solution.containsNearbyDuplicate(newint[]{1,0,1,1},1));
1818
}
1919

20+
@Test
21+
voidshouldAssertFalseWithExample3() {
22+
Solutionsolution =newSolution();
23+
Assertions.assertFalse(solution.containsNearbyDuplicate(newint[]{1,2,3,1,2,3},2));
24+
}
25+
2026
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp