Devising a Plan: Strategy
Develop a strategy to solve the problem.
We'll cover the following...
Strategy
We need to figure out a strategy to find the correct number in the given range of numbers. However, first, we need to think of a way to find a number out of the 50 numbers with minimal guesses.
Can we use random guesses?
Guessing 20 will give one of the three possible outputs. Either we would guess the number correctly, or the number would lie in the range of either 1–19 or 21–50. We need to keep the following questions in mind while making ...