Westonci.ca offers quick and accurate answers to your questions. Join our community and get the insights you need today. Our platform offers a seamless experience for finding reliable answers from a network of experienced professionals. Get immediate and reliable solutions to your questions from a community of experienced professionals on our platform.

What is the maximum number of guesses it will take to find a number between 1 and 1000? Explain your answer.

Sagot :

Answer:

The maximum number of guesses without binary search is 999 since we would be going sequentially and guessing the numbers. When we reach number 999 and find that is not the answer, we know it has to be 1000, and don't have to guess, so the number of max guesses is 999.