Let's say i create a String array that store 4 Alphabets {"A","B","C","D "}
How can i get the result if i need permutation of 4P3 and 4P2?
I had refer to many examples from the internet, but those examples cannot compute n selection from m elements. They only able to computer permutation of m elements without selection e.g. 4P4.
I need help in how to create an algorithm that can perform permutation of n selection from m elements.
Any help will be appreciated.
Thanks
Ash
How can i get the result if i need permutation of 4P3 and 4P2?
I had refer to many examples from the internet, but those examples cannot compute n selection from m elements. They only able to computer permutation of m elements without selection e.g. 4P4.
I need help in how to create an algorithm that can perform permutation of n selection from m elements.
Any help will be appreciated.
Thanks
Ash
Comment