# recursive binary search NOT WOKING

not working java

this is my call:

System.out.println("recursiveBinarySearch "+recursiveBinarySearch(x,0,x.length-1,10));

public static int recursiveBinarySearch(int[]array,int low,int high,int value){

int mid;

if(low<=high){

mid=(low+high)/2;

if(array[mid]

recursiveBinarySearch(array,mid+1,high,value);

}else if(array[mid]>value){

recursiveBinarySearch(array,low,mid-1,value);

}else{

return mid;

}

}

return -1;

}...

By: StackOverFlow - Friday, 9 November

# Related Posts

- Older News
- Improving the linear search technique? StackOverFlow (Yesterday) - I'm afraid we have a bit of a sadistic instructor on our hand, because I honestly did not understand this question and never found the answer in the text book,...
- Binary search algorithm check if n is contained in a StackOverFlow (Yesterday) - I am having trouble implementing binary search within my code, can you explain how it works. binarySearch takes an array of integers a and an integer n and usesbinary search...
- Hexadecimal representation of a binary file StackOverFlow (3 days ago) - I have a binaryfile.bin where I have a set of instructions which I have to decode to hexadecimal.I written a program in java that does this and I get the...