Binary search in sorted rotated array

when we are finding 5 the mid and start is at4 and end is at 6
a[mid]<=key<=a[e] and a[s]<=key<=a[mid]
both cases are satisfying the condition so right or left which portion will be called

@deepakjumani09 now you have to see if key > mid or key < mid
if key == mid you have found your answer
if key < mid, call left part
if key > mid, call right part

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.