Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Coding Interview Preparation in JavaScript. Parent comment
Off the top of my head, or at least where I've used them recently:
> kth permutation of a set of numbers?
Producing all pairs of a collection, e.g. for computing the minimum distance between elements (via map/reduce).
> clone a directed graph
Any object in an OO language (like JavaScript) is essentially a directed graph, so, cloning one of those.
There are no comments on this comment yet.
Off the top of my head, or at least where I've used them recently:
> kth permutation of a set of numbers?
Producing all pairs of a collection, e.g. for computing the minimum distance between elements (via map/reduce).
> clone a directed graph
Any object in an OO language (like JavaScript) is essentially a directed graph, so, cloning one of those.