I want to know how to print in the given order as in the problem. I used a vector to store all subsequences and then printed in reverse order is their any way to not use vector. PLS Look into my code and tell.
Related to the problem
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.
can we do it in any other way?
@pradhumangupta99,hey this is basic approach ,but instead of storing you can also just print hte subsequences ,thats also another way.