I want to know, what should I print in the case if there is no permutation larger than the given input as it is not specified in the question?
Getting wrong answer in two test cases!
You need not to print anything.
still i am getting WA in 2 test cases, I have specified the link to my code. Could you please help me figure out, what am I missing??
Hey Shantanu, the code written by you is absolutely correct, but there is an issue of a extra line which should not happen, thats an issue from the backend side, we have reported the issue to the team, they are looking into it. Meanwhile you can try this problem in c++ with a recursive approach as the title suggests.
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.
Still i am getting WA in 2nd testcase.