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
Our binary search makes two tests inside the loop, when one would suffice (at the price of more tests outside).
Write a version with only one test inside the loop and measure the difference in run-time.