https://ide.codingblocks.com/s/57116
is the link to my solution of problem recursion dictionary order smaller please help me out whats wrong only 2 out of 4 test cases are passing
Regarding dictionary order smaller
Hey Kushagra, Your logic is correct but the order of output is not as required.
For eg. you can check for this case:
input:
nsit
your code’s output :
nits
isnt
istn
inst
ints
itns
itsn
but the expected output:
nist
nits
inst
ints
isnt
istn
itns
itsn
Here I am sharing my code, you can refer this for getting the correct order for the output.
Hey Kushagra, as you are not responding to this thread, I am marking your doubt as Resolved for now. Re-open it if required. And please mark your doubts as resolved in your course’s “Ask Doubt” section, when your doubt is resolved.