Code not running correctly for all elements of array
@supratik260699 It is easy binary search problem it requires only 4 conditions to check I would request you to solve it yourself because it will give you a lot of concept about binary search and you’ll learn.
Actually its giving correct output for first half array but wrong output for last half I checked it twice but not able to find the mistake
@supratik260699 what 4 cases have you taken. If not taken then I would recommend you to watch the video again
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.