Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Array Iteration Interview Problem. Parent comment
Also, unless I'm mistaken, you can lose the "if (n === 0)" case completely.
There are no comments on this comment yet.
Also, unless I'm mistaken, you can lose the "if (n === 0)" case completely.