Binary Search on the Answer – Big Brain Decisions
We all know binary search.It's the good old “Guess a number between 1 and 100” game — cut the range in half each time and you win.
But what if I told you…You could binary search the answer to problems where the array isn’t sorted?No midpoints in sigh...
codelikeyoumeanit.hashnode.dev4 min read