[Solved] permutations of string in ascending order [closed]
[ad_1] In your example the strings are not in ascending order: you have AB, AC, AD, ABC, …, but then you have B, BC before C, and D. If you want it in alphabetical order should be A, AB, ABC, ABCD, AC, …. When you write it that way you see the recursive structure … … Read more