Solution Review: Recursive Binary Search
Have a look at the solution to the 'Recursive Binary Search' challenge.
We'll cover the following...
We'll cover the following...
Rubric criteria
Solution
Rubric-wise explanation
According to the problem statement, a call from the main function will send the array and a value that is to be found. Look at line 22. We create the header of a binarySearch() function. It takes array and value as input and returns the position of value in array. In this function, we call another method: search.
Point 1:
The search method is a recursive method. To carry out the recursion ...