String of codes

I am failing the last test case ou of three test cases
cannot figure out why here is my code https://ide.codingblocks.com/s/71372

hey Sanjay,
see the sample input,
you need to print the strings in increasing order (lexographic order).

After recursion just use
sort(k.begin(),k.end());

your code will work fine.
:slight_smile:Hit like if u get it

1 Like

If your doubt is resolved then please mark it as resolved in your online course
ask doubt section.

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.