Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

Permutations of a list

Please write a program which prints all permutations of a list.

permutations( [1,2,3] ) # [[1,2,3,],[1,3,2],[2,1,3],[2,3,1],[3,2,1],[3,1,2]]