i am trying to find all possible permutations ,then checking if it is greater and then printing it.
i am not getting the correct answer , can you help me withe the code
Doubt in logic of the code
hello @chitranshanmol07
ur code is correct, but it is not passing test cases because order mismatch.
to rectify it
store all ur valid strings in some vector.
and then sort ur vector
and then print it.
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.