Assuming that names is a sorted (in ascending order) list of n strings, write a script
to search for a name in the list using binary serach. The name to be searched for is
to be input from the user. If the name is found in the list, the script should its location
in the list. If the name is not found, display an appropriate message.
Answers
Answered by
0
Answer:
Assuming that names is a sorted (in ascending order) list of n strings, write a script
to search for a name in the list using binary serach. The name to be searched for is
to be input from the user. If the name is found in the list, the script should its location
in the list. If the name is not found, display an appropriate message.
Similar questions