News for hackers. Stuff that matters.
Re:Coding Interview Preparation in JavaScript by skwosh on Tuesday March 01, 2016 @03:24PM (#11205758)
> Where, in any of my day-to-day job duties, ...

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.