How can my code more efficient?

like do I have to make my making of subset part more efficient?https://ide.codingblocks.com/s/251154

@aryaman.kumar26 you can make your code more efficient with the help of bitmasking. There is a hint video also, with the name of “xor profit hint” you can refer to that to understand the approach. Let me know if you need any help in coding it.

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.