Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Steve Ballmer's incorrect binary search interview question. Parent comment
You can also view it as a recurrence:
f(1) = 1 f(n) = 2*f(n - 1) + 1 = 2^n - 1
You can also view it as a recurrence:
But your binary search tree example is more intuitive.