Skip to content
RED SAGSkills
easy5 pts · first answer countssorting-and-searching

Loop condition for a closed search range

A binary search keeps lo and hi as the first and last valid indices of the range still to search (both inclusive). Which loop condition is correct?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions