How do I get a combination from an array of counter lines 2? Those..
List<string> myString = {"a", "b", "c", "d", "f"};
The permutation will look like this:
ab
ac
ad
af
ba
bc
bd
bf
ca
cb
cd
cf
etc...
I do not know how to start this algorithm. If this helps, I would rather do a loop than recursion, because in my real implementation I need to assign a value to the permutation elements and compare them with each other and choose the highest one.
source
share