Binary search in array

why we are returning -1, 0
as we are never using them in an case.

@rachitpd1999_12754ab8dd26f52e hii rachit see if u have not find the key after traversing the whole array its means there is no element which value equal to key so return -1

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.