I can’t decide how to solve recursion dictionary order(larger). I don’t know how to proceed with the problem.
How to solve recursion dictionary order(larger)?
it is simple
As u do permutation
just in the base case u simplly cout the permutation
in this u only have to check that the permutation is bigger than the original string that is input string or not
if greater than cout the permutation if not then don’nt cout
But it has been clearly stated that the obtained permutations have to be printed out in lexicographical order(according to dictionary).
it is said that the permutation which is greater than the original in dictionary order HAVE TO BE COUT
the order is not defined
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.