Your friend chooses an integer between 0 and 100. You have to find out that number by asking questions, but your friend can only answer 'yes' or 'no' . What strategy would you use?
Answers
Answered by
26
If the chosen integers is given between 1-100 then go on doing halves such as is it between 50 ,then is it between 25 then 12, 6, 3, 2, 1,
Answered by
26
First ask whether it is an odd or an even number.
Then ask whether it is in between 1-50 or 51-100 , then thin the margin...and continue,,,......
Then ask whether it is in between 1-50 or 51-100 , then thin the margin...and continue,,,......
Similar questions