all the testcases showing wrong answer
Recursion dictionary order(smaller)
You are printing strings that are greater or smaller than the given string whereas we only need to print the strings smaller than given string.
pls tell in the form of a code
Sorry for the delay.
https://ide.codingblocks.com/s/60752
You can refer to this code.
One easier way to do this question would be to pass the original string and simply generate all possible combination and finally check if the permuted string is smaller or not, if it is 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.