combinatoricslib3 icon indicating copy to clipboard operation
combinatoricslib3 copied to clipboard

k-Permutations - ordering of elements

Open axkr opened this issue 4 years ago • 0 comments

From your k-Permutations example:

This will print six 2-permutations of (1, 2, 3):

   [1, 2]
   [2, 1]
   [1, 3]
   [3, 1]
   [2, 3]
   [3, 2]

How can I make the "sort ascending by column"?

   [1, 2]
   [1, 3]
   [2, 1]
   [2, 3]
   [3, 1]
   [3, 2]

axkr avatar Mar 07 '21 02:03 axkr