I am trying to generate the subsequences of the string but it is print abc always

Hey, first make the recursive call for exclude character, then for include. It will work fine then.

Oh now it’s working fine.
But why excluding first ?

If you include first, then character is being assigned in your output array, hence no matter you make a exclude recursive call, but still character is already present in o/p array…

oh thanks I got the point !
Thanks

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.