Recurssion dictionary order (smaller)


check the code once i am not getting where i am wrong

Modified code

there is error in swaping the elements
you have to swap the char of only one string and don’t alter the second string it(second string) is for comparison purpose only

you have to print the output in sorted array
so instead of print the output i saved all output string in a vector
and in main() i just print the vector after sorting

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.