Help rahul (binary search)

what the problem in my code . plzz tel L me in detail .

reply plzz i am waiting of your answer

The binary search you have written works for sorted array but the given array is not sorted array.

so now what i should do tell me

please refer to this video

thanks bahiya .it is really helpful for me .now my concept of this question is clear.

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.