Question: In binary search, how do you calculate the middle index?
Options:
Correct Answer: low + (high - low) / 2
Solution:
The middle index is calculated using low + (high - low) / 2 to avoid overflow.