String subsequences recursion

https://hack.codingblocks.com/contests/c/537/353
https://ide.codingblocks.com/s/41246

Pls help me with the “subset” func in my code, not giving the correct ans

You are not handling recursion properly.
Go through my code
https://ide.codingblocks.com/s/41250

The two functions used to count and print are similar. There is just difference of return type and printing in them.

oh okay, understood! Thanks!

Welcome, that’s great. :love_you_gesture::+1: