Please tell me Why it is not giving correct output?
Not giving correct output
@cbcao263 you dont have to print just the next permutation. You have to print ALL the permutations that are bigger than the input. For eg for bac the output should be
bca
cab
cba
But your outpur is just
bca
Try to do it without using the next_permutation function.
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.