failed in test case 1 and 3
Arrays-Binary Search 1
@Ajitverma1503
You have not returned -1 in case the element is not present in the array.
Just add a return -1; statement at the end of the binary search function.
failed in test case 1 and 3
@Ajitverma1503
You have not returned -1 in case the element is not present in the array.
Just add a return -1; statement at the end of the binary search function.