Take four numbers 1,2,3,4.generate and print. All the permutations of these four numbers. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Take four numbers 1,2,3,4.generate and print. All the permutations of these four numbers.

3rd Jan 2017, 9:46 AM
sanjoy dey
2 Answers
+ 16
Factorials:/
3rd Jan 2017, 11:47 AM
Frost
Frost - avatar
0
Hi, take a look at my code "permutations". It's in phyton, bit I guess you could use the same algorithm
7th Mar 2017, 6:53 AM
Qwerty