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
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
b) high = pos – 1, low remains unchanged
c) low = low +1, high = high – 1
d) low = pos +1, high = pos – 1