Why my code is not passing all testcases, Although it prints all the possible permutation of given string correctly

This is my code…

ohhh… okay okay… got it… just I forgot to write endl in last… Now it passed all the testcases

@abhi542136 yes there is printing mistake and also you should think of printing the ouput in the sorted format but as you have already used set so your order will be maintained.
Happy Learning!!

@abhi542136 https://ide.codingblocks.com/s/428601

1 Like

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.