Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Nearly All Binary Searches and Mergesorts Are Broken (2006).
Why this instead of the more intuitive `low/2 + high/2` ?
Edit: Nevermind, I get it. The reason is instructive: In the case where high and low are odd numbers, the "more intuitive" way is off by one.
There are no comments on this comment yet.
Why this instead of the more intuitive `low/2 + high/2` ?
Edit: Nevermind, I get it. The reason is instructive: In the case where high and low are odd numbers, the "more intuitive" way is off by one.