Generate subsets using Bitmasking

The length of the string shouldn’t exceed 64, isn’t it?

Yeah thats right…

then why is the length taken to be 100 at the time of declaration?

taking 100 won’t cost us much memory… Its general practice that people take more memory that the constraints given… so that if by chance a wrong test case is given which just exceeds the limit, they still pass.

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.