I have tried it but the test cases are failing
Recursion subsequences cpp
@Kush_1312,
You are printing subsequences in reverse order i.e:
Your output:
abcd abc abd ab acd ac ad a bcd bc bd b cd c d *
16
Correct output:
*d c cd b bd bc bcd a ad ac acd ab abd abc abcd
16
*means a space char
Hint: Try playing around with the order of recursion calls.
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.
and what would happen if i do this(i have written some doubts as comments in the code) https://ide.codingblocks.com/s/199819