What is the condition for binary search of be unsuccessful where Beg is the beginning and End is ending location of sorted array?
Show answerHide answer
Correct answer: (C) End < Beg
Explanation
Binary search keeps narrowing Beg..End; when Beg passes End (End < Beg) the search range is empty, so the element is not present.