How should i approach this problem?

Print all the subsequences of a string in lexicographical order.

hi @priyanshu180901_fb9ce5685f941d19 refer

how should i solve this without the use of vectors, because i haven’t studied this topic.


like in the above code, i’ve stored all the subsequences in a string but i am unable to sort them lexicographically.

hi @priyanshu180901_fb9ce5685f941d19 u need to store and sort, vector is similar to array u can read about it

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.