Storing the subsets in the vector and sorting them issue

please provide the code in which the substes are generated as well as they are stored in a vector and sorted lexicographically

Hey @Rj.25
Please try writing the code once yourself. I’ll be happy to assist you with any issues you face with the code. Asking for code directly won’t help you. Also the code is given in the video. You just need to think about pushing strings in a vector then sorting 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.