Printing all permutations of a String with repeated characters
I wanna print all permutations of lets say a char array for simplicity. This array contains a few repeated characters.
I need to get the result without going into any previous results.
ex- say we have ['a','c','a','b']
I will print "aacb" when I encounter is the first time and I must not print it the second time, neither can I look into the previous result.
Open Chat in New Window