0

Essentially, given a start of an inclusive integer range $s$, an end of the range $f$ such that $s \le f$, and an integer $n$ such that $s \le n \le f$, how many guesses would binary search take to find $n$?
For example, let $s = 1$, $f = 20$, and $n = 9$. Then, binary search would take $5$ guess...