Recursion subsequence


code is correct but unable to pass the test cases

Check order of the output
Expected is this:
d c cd b bd bc bcd a ad ac acd ab abd abc abcd
Yours is giving
abcd abc abd ab acd ac ad a bcd bc bd b cd c d
16
You are close, try to find it. if unable to do it. Let me know.

got it sir.

If doubt resolved please mark it as resolved.

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.

Hi, could you please tell me the solution, I am also getting the same result(the order is different, but is correct)? In real technical rounds can this be a bottleneck??