Binary Search variants

Hi all,

I had a doubt regarding binary search. In a case, when I want to find whether an element exists in the array that lies between two numbers(given), how should I implement it?

2 Likes