Whenever I am removing the swap which is the main line to backtrack it is passing all test cases. I cannot understand the reason behind it.
Some test cases failing
u also h to print it lexographically
so should i store all these in a set and then print it?
u can do this use a set or a map but try to do without these just u have to sort the string u got after permuted
1 Like
Sort the string i permuted , what do you mean by this?
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.
I have a doubt in a tree question kindly check it its urgent