Free help with homework

Why join Brainly?

  • ask questions about your assignment
  • get answers with explanations
  • find similar questions

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?


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,
1 1 1
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,,,......
0 0 0
The Brain
  • The Brain
  • Helper
Not sure about the answer?
Learn more with Brainly!
Having trouble with your homework?
Get free help!
  • 80% of questions are answered in under 10 minutes
  • Answers come with explanations, so that you can learn
  • Answer quality is ensured by our experts