Hacker News new | ask | show | jobs
by jpitz 2578 days ago
Alternately, I implemented the algorithm for generating all permutations straight out of Knuth.

They may be extremely dense and hard to read, but I feel like you are hanging a lot of emotional baggage on a set of reference books.