Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit d96e08b

Browse files
authored
Merge pull request #3 from homnay1234/homnay1234-patch-3
Change code
2 parents 318cced + 9d22674 commit d96e08b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/main/java/com/rampatra/searching/BinarySearch.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,6 @@ public static void main(String[] args) {
7272
System.out.println(binarySearch(new int[]{0, 2}, 0));
7373
System.out.println(binarySearch(new int[]{0, 1, 2, 2, 2, 3, 3}, 2)); // doesn't return index of first occurrence
7474
System.out.println("---------");
75-
System.out.println(binarySearchNonRecursive(new int[]{0, 2}, 2));
76-
System.out.println(binarySearchNonRecursive(new int[]{0, 1, 2, 3}, 2));
77-
System.out.println(binarySearchNonRecursive(new int[]{0, 1, 2, 3}, 3));
78-
System.out.println(binarySearchNonRecursive(new int[]{0, 2}, 0));
79-
System.out.println(binarySearchNonRecursive(new int[]{0, 1, 2, 2, 2, 3, 3}, 2));
75+
8076
}
8177
}

0 commit comments

Comments
 (0)