this is the ide of my code.
Some wrong answers
Hello @Shwetatrisal,
You have missed a very important part of the question, which is causing wrong output.
You have to print all the permutations , but without printing any string more than once.
Solution:
check if you should process the string:
- if the current element has not occurred before in the given string, then you should perform.
- if it has already occurred before, then processing it, would create a copy of previously generated string.
I have modified your code:
Hope, this would help.
Give a like, if you are satisfied.