Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Challenge HN: Inspired by greplin's third problem.
Perl, 7s. Looks like I arrived at the same recurrence that madars used, but I swear I didn't look at his solution...
Memoize magically turns it from exponential to polynomial.
There are no comments on this comment yet.
Perl, 7s. Looks like I arrived at the same recurrence that madars used, but I swear I didn't look at his solution...
Memoize magically turns it from exponential to polynomial.