2 ms·
Another stupid gotcha: Ballmer states the question as "I'm thinking of a number between 1 and 100." He does not state that the number is an integer. If he's t
by chihuahua 2y ago
Another stupid gotcha:
Ballmer states the question as "I'm thinking of a number between 1 and 100." He does not state that the number is an integer. If he's thinking of anything other than an integer, you're unlikely to be successful in finding it via binary search.
- tyilo 2y agoHe also didn't state that the number is always in the set {59}, so you will always win 5 dollars.