Question: 2. Write a recursive binarySearchWords function for an array of strings (already sorted), that returns the indexes of all the strings (words) whose first letter
2. Write a recursive binarySearchWords function for an array of strings (already sorted), that returns the indexes of all the strings (words) whose first letter is, for example ' 2 ' or 's'. For example, for anArray = \{"books", "elephant", "Letter", "source", "switch", "tigers" }, the search result should show: indexes found are: {2,3,4}. 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
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
