Need more efficient solution

one test case is failing. need more efficient solution

hello @rick711c

that bitmask approach is the most efficient solution for this problem

pls share ur code with me

can you please give an idea about the bitmask approch

pls chck this out->

one test case is failing

there is no link of the video …can you please share it again

link ->

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.