Skip to content

Commit 041557a

Browse files
committed
12.1 test fixed for out of bounds index
1 parent cddeb50 commit 041557a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

searching/src/test/java/SearchSortedTest.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public void search4() throws Exception {
4545
@Test
4646
public void search5() throws Exception {
4747
n = 100;
48-
k = 100;
48+
k = 99;
4949

5050
test(n,k);
5151
}

0 commit comments

Comments
 (0)