General doubt in sybset generation problem

Generating subset using bitmask and generating subset using recursion,which one is more efficient?
i think In bitmasking process we have to iterate upto 2^n,so it is quite slow.

hello @hrit04 i would like to help you could you please elaborate your question how you want to do with bitmasking .
but this is the question of recursion with dynamic programming .

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.