How can i write a Java program to find the permutation of any two imputed numbers | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can i write a Java program to find the permutation of any two imputed numbers

the two numbers are 5 and 2

11th Jul 2017, 8:36 AM
ibiso eugene
ibiso eugene - avatar
2 Answers
0
a permutation is a specific order to a set of numbers. Iirc, given a number of unique elements, there are n! arrangements / permutations. so with two numbers, I don't know what they represent. are they the 2 unique elements? are they a set of the same elements? are they a list of numbers from 0 to that number? Need more information.
13th Jul 2017, 6:06 AM
Andrew Lampert
Andrew Lampert - avatar
0
the two unique element
27th Jul 2017, 11:27 AM
ibiso eugene
ibiso eugene - avatar