This commit is contained in:
Zhizhen He
2023-04-06 14:01:40 +08:00
committed by GitHub
parent 5333a1a299
commit 47605787fd

View File

@ -99,7 +99,7 @@ int binarySearch(int arr[], int l, int r, int target){
return mid;
else if (arr[mid]>target)
return binarySearch(arr,l,mid-1,target);
eles
else
return binarySearch(arr,mid+1,r,target);
}