Recursion dictionary order

whats error? its not printing anything.

hello @nilotpal

ur compare function is not correct.
u cannot append char to int and compare.

use string and append char to string. and then compare string

I corrected it now. but still test case are failing.

becuase they want output in sorted (lexicographical order) ,
store all ur output string in vector. sort that vector and then print it.

1 Like

…yeah! thanks. done.

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.