You are a worker for an emperor. All he will ask for is to guess his number. It is in between 1 and 549,755,813,888. You can ask if it is more or less than a certain number and he will respond. What is the minimum number of questions you could ask with being guaranteed of winning?
FYI: You will die if you take any unnecessary moves.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Apply Binary search .