my logic is correct but my code is working only upto index 2
after that it is not finding the key
here is my code
Binary search using recursion
because binary search works only for sorted arrays , but the array you have provided is not sorted
my logic is correct but my code is working only upto index 2
after that it is not finding the key
here is my code
because binary search works only for sorted arrays , but the array you have provided is not sorted