File tree Expand file tree Collapse file tree
exercises/practice/binary-search/src/main/java Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments