Recursion-All subsequence

i got the correct output but still here in the coding blocks compiler the testcase fails. Please help me in finding and correcting my mistake.

@mvermav19 hii mansi see your code is correct but according to the question in coding blocks u have print in single line as well as you have to print number of subsequence also that’s why it not passing test cases

sir i have printed the sub sequences in separate lines as was asked in question. Where did i go wrong?

sir it stills fails the test case.
How should i correct it?

@mvermav19 i resolved your code and now its working fine on all test cases


check this


it’s still not working fine sir

@mvermav19 see this all test cases passes and your code is right

image
Actually i was asking the doubt for this problem

@mvermav19 ya mansi this is same question only name change you have question all subsequences and i have a question of subsequences

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.