Recursion all subsequences wrong answer

problem- https://hack.codingblocks.com/practice/p/390/73
my solution- https://ide.codingblocks.com/s/43880

You have to print in lexigraphical order as mentioned in the question.
Use set or map to store all the strings in lexicographical order instead of printing them directly.

1 Like

https://ide.codingblocks.com/s/43916