Question: Write a recursive binarySearch function for an array of strings ( already sorted ) , that returns the indexes of all the strings whose first

Write a recursive binarySearch function for an array of strings (already sorted), that
returns the indexes of all the strings whose first letter is b for example.
For example, for anArray ={books, letter, boxes, curve}, the search result should
show: indexes found are: {0,2}.
Notes: You should set the target letter to be a variable, so we can use your function to
search strings starting with any given letter withing a-z.
2. Write a main() function that tests the above function, with two test cases.
do it in c++

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Sure Heres a solution for you It includes a recursive function binarySearch that finds all strings in an array starting with a specific character and ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!