What goes in the blank?
# midpoint of a binary search window mid = (low + high) // ____
Answer: 2
Halving the window each step is what makes binary search logarithmic.
Play Problem Solving ▸
# midpoint of a binary search window mid = (low + high) // ____
Answer: 2