how can i print my output in lexographical order
https://ide.codingblocks.com/s/49641
https://hack.codingblocks.com/contests/c/512/73
Subsequences in lexographical order
Instead of printing the answer directly store it in a map/set (ordered) it stores the strings in lexographical order. And then print it.
1 Like