problem- https://hack.codingblocks.com/practice/p/390/73
my solution- https://ide.codingblocks.com/s/43880
Recursion all subsequences wrong answer
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