Page 1 of 1

What are the updated values of high and low in the array if the element being searched is greater than the value at calc

Posted: Wed Jul 13, 2022 6:15 pm
by answerhappygod
a) low = pos + 1, high remains unchanged
b) high = pos – 1, low remains unchanged
c) low = low +1, high = high – 1
d) low = pos +1, high = pos – 1