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;

}...

Read More »

By: StackOverFlow - Friday, 9 November

Related Posts