$ ./guess_the_languageProblem Solving — fill the blank
Problem Solving — fill the blank · medium · #244

What goes in the blank?

# midpoint of a binary search window
mid = (low + high) // ____

Answer: 2 (also accepted: 2)

Halving the window each step is what makes binary search logarithmic.
Play Problem Solving ▸