powered by
Generate all permutations of 1 to n, as rows of a matrix
allPerms(n)
an n!xn matrix whose rows give permutations
size of permutations
allPerms(4)
Run the code above in your browser using DataLab