my code is working fine but test cases are not passing
it is the code
Recursion lexicographical order print
@nidhi_1609
Your code fails for multiple testcases.
Since you are using a vector v defined in global and not clearing it for every testcase , it takes the previous values with it and ruins any further testcases.
Use clear( ) function of vector to empty the vector after every testcase iteration.
v.clear() ;
Put this statement after you print the contents of the vector.
got it. thankyou : )