Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on In C++, is empty() faster than comparing the size with zero?. Parent comment
(The reason why it used to be constant time is that it didn't have to count because it didn't have to compute the new size).
There are no comments on this comment yet.
(The reason why it used to be constant time is that it didn't have to count because it didn't have to compute the new size).