You are trying to guess my favorite number. I tell you it is from 1-100 somewhere and is an interger. You can guess anything you like and I will tell you whether my number is higher or lower then your guess. What is the smallest number of guesses you can make to make sure you will get my number, no matter what it is?
Assume that I don't lie to you about the greater or less than value.
(In reply to
re: Possible solution? by Gamer)
In both of the examples you know what the number is, but you never guessed it. I think the seventh guess would have to be where you actually guess 17, 98, or whatever the number is (if it takes that many to find it).
|
Posted by DJ
on 2003-06-16 06:29:30 |