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

What goes in the blank?

# discard the half that cannot contain the target
if arr[mid] < target:
    low = mid + ____

Answer: 1 (also accepted: 1)

mid has already been tested, so the next window starts one past it.
Play Problem Solving ▸