Recursion Dictionary large(why my code is not passing all testcases)

store the output in a global vector
sort the vector in lexographically increasing order
then print it
u`ll get correct answer


I did sorting but still no testcases are being passed

please go through this link


ur updated code

Still no testcases are passed. Can you please submit on some other platform such as hacker blocks so that you can tell me whether the code has problem or there is problem in the main platform

… see this it works fine

It passed all testcases, thank you so much