Question: Character query and integer numData are read from input. Then, numData alphabetically sorted characters are read from input and each character is appended to a




Character query and integer numData are read from input. Then, numData alphabetically sorted characters are read from input and each character is appended to a vector. Complete the FindData() function: - If query is alphabetically before the element at index middlelndex of the vector, output "search lower half" and recursively call FindData( to find query in the lower half of the range. - Otherwise, output "search upper half" and recursively call FindData() to find query in the upper half of the range. End each output with a newline. Ex: If the input is: 05acg0x then the output is: search upper half
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
