Posts by Luiza • 11 points
1 post
-
1
votes1
answer100
viewsQ: Recursive Binary Search does not find the element at the last vector position
I made a recursive binary search code in Java. It finds the positions correctly, except when the searched element occupies the last position of the vector. I don’t know how to fix this. public…