i am not getting the point that if a[s]<=a[mid] then the key will be on left side if key would be on another part then also it would have happen a[s]<=a[mid]
Please give reason for rahul help problem
@guptanikhil898 hey ,these are both different cases ,we have break the problem at one point and than apply binary search on both sides,check this out:
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.