why is ans=-1 in the beginning
Binary search occurence
The built in function returns -1 if the key element is not present in the sorted array.
why is ans=-1 in the beginning
The built in function returns -1 if the key element is not present in the sorted array.