Enhanced the recursive binary search function to properly return the index of the found item. Adjusted the recursive calls to ensure the found index is propagated back through the call stack, and added a base case to return -1 when the item is not found.
Enhanced the recursive binary search function to properly return the index of the found item. Adjusted the recursive calls to ensure the found index is propagated back through the call stack, and added a base case to return
-1
when the item is not found.