Recursion-dictionary order(larger)

https://ide.codingblocks.com/s/350751,

please check my code , sample output is same but test cases are not passing.

hello @CODER_JATIN

ur code output is correct but its order is not correct that is why it is giving u wrong answer.
follow this->

a)declare a vector of string globally
b) push all ur valid strings (strings that u want to print) into that vector.

c) sort the vector and then print it

bhaiya , is code mai kya problem hai vese ?

@CODER_JATIN
hame lexicographically order mein output print karna hai but tumhara random order mein print kar raha hai.
tumhara logic aur output dono sahi hai bus output ka order different hai to error aa raha hao

Achha matlab jitne bhi output hai vo bhi aapas mai lexicographically print honey chahhiye.

ha . . . . . . … . . . . . . .

https://ide.codingblocks.com/s/350804 , aman bhaiya dekhna ab sahi hai ?

aur agar descending order mai sort karna ho to comparator function use karna padega?

ha tab comparator use karna padega

ha ab sahi hai , ek baar submit kar ke try karo

hanji bhaiya ab test cases ho gye pass, approach sahi hai vese ?

ha . … … …, … . . . … . . … .

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.