DEV Community

loading...

Discussion on: 6-10PM challenge problem #006

Collapse
akbhairwal profile image
akbhairwal Author

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

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