Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 17 additions & 7 deletions exercises/practice/binary-search/src/main/java/BinarySearch.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
/*

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

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

*/
int search(float a, float [] arr){
throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
}

int search(double a, double [] arr){
throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
}

int search(long a,long [] arr){
throw new UnsupportedOperationException("Delete this statement and write your own implementation.");
}

}