1.

Which of the following statements is used in the binary search algorithm to halve the array ?

A. Middle Sub = middle Sub/2,
B. Middle Sub = (stop Sub - start Sub)/2,
C. Middle Sub = start Sub + stop Sub/2,
D. Middle Sub = (start Sub + stop Sub)/2,
Answer» E.


Discussion

No Comment Found