Re:Ask HN: How to lead a stable, happy career as a bad inter...
by User23 on Monday May 13, 2019 @11:45PM
(#19906621)
Yeah, that's how it appears it really works.
That said, the fundamental idea behind bsearch is toddler easy. It's interesting that such an apparently simple algorithm, namely start in the middle, pick left or right depending on the key, and repeat, is so challenging to code correctly.
That said, the fundamental idea behind bsearch is toddler easy. It's interesting that such an apparently simple algorithm, namely start in the middle, pick left or right depending on the key, and repeat, is so challenging to code correctly.