Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Locating the Source of a Mysterious Beep. Parent comment
sum_{i=1}^{log_2(n)} {(n/2^i)} = n - 1
So it's O(n).
There are no comments on this comment yet.
sum_{i=1}^{log_2(n)} {(n/2^i)} = n - 1
So it's O(n).