You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this looks great! most clear answer ever.
but, this does not looks a "binary" search - the loop looks still a linear search, from 0 - len().
I guess instead of every time -1 or +1 on failure, use /2 to jump back or forth. only that will be the binary search?
The text was updated successfully, but these errors were encountered:
this looks great! most clear answer ever.
but, this does not looks a "binary" search - the loop looks still a linear search, from 0 - len().
I guess instead of every time -1 or +1 on failure, use /2 to jump back or forth. only that will be the binary search?
The text was updated successfully, but these errors were encountered: