Skip to content

Commit d09dc06

Browse files
authored
stubs added for binary search in exercises (exercism#2275)
1 parent ce760d3 commit d09dc06

1 file changed

Lines changed: 17 additions & 7 deletions

File tree

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,20 @@
1-
/*
21

3-
Since this exercise has a difficulty of > 4 it doesn't come
4-
with any starter implementation.
5-
This is so that you get to practice creating classes and methods
6-
which is an important part of programming in Java.
2+
class BinarySearch {
73

8-
Please remove this comment when submitting your solution.
4+
int search(int a, int [] arr){
5+
throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
6+
}
97

10-
*/
8+
int search(float a, float [] arr){
9+
throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
10+
}
11+
12+
int search(double a, double [] arr){
13+
throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
14+
}
15+
16+
int search(long a,long [] arr){
17+
throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
18+
}
19+
20+
}

0 commit comments

Comments
 (0)