Suppose i was thinking of a number between 1 and 1000 inclusive and for every attempt to guess my secret number i;ll tell you whether your guess is higher or lower than my secret number.. In the worst case how many guesses do u need to figure out what is my secret number?

I don't know the answer, but im guessing its 10, using the binary search algorithm?

Anybody?

## Bookmarks