sir what should i do if there is repetition of characters eg aabc
here when i print all subsequences there will be repetion of some subsequences likea,ab etc but i want to print all different subsequences
Recursion subsequences
Hey Rahul, you can use set to store all the subsequences as set stores a string only once.