DEV Community

Discussion on: 6-10PM challenge problem #006

Collapse
 
akbhairwal profile image
akbhairwal

if(num >= arr[low] and num < arr[mid]):

In equal case, you should return 'low' , there is no need to do anything.