3 ms·
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 y
by jpitz 7y 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.