i'm unable to understand the code/algo behind generating string permutations.. could some explain the code to me? i've tried but am not able to get how its working
To generate all permutations, you could use different algorithms.
One could be: Generate a collection of combined objects, where every possible element is used as head, and the remaining elements are a Collection of remaining elements.
Repeat this method for the remaining elements, until they are all consumed.