Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Binary Search Reconsidered (2018). Parent comment
edit: this is a bit longer version, if signed conversion/shift is not available: int mid = (min >> 1) + (max >> 1) + (min & max & 1)
There are no comments on this comment yet.
edit: this is a bit longer version, if signed conversion/shift is not available: int mid = (min >> 1) + (max >> 1) + (min & max & 1)