Not able to bypass empty subset

please help me:
code link-

hi @S18CRX0174 you can use a count variable to keep a track of the number of elements you are currently considering. For eg when you include a particular element, increment count by 1, else dont increment it. In the base case, check if count > 0.

thanks for your suggestion

And can we do this using memoization and what would be the dimension

@S18CRX0174 you dont need memoization for it, a single variable should suffice. Update its value through recursion calls, and backtrack it for the subsequent callls. Do you need a code for further clarification?

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.