Not passing but looks correct

prob: https://hack.codingblocks.com/app/contests/2022/307/problem

sol: https://ide.codingblocks.com/s/394125

Hello @raghav007 i have corrected your code and now it is passing every test caes.


i have commented the error.
Happy Learning!!

what changes do I need to make for printing subset I think the choosing an element and not choosing it part is the same

Hello @raghav007 in your code you just dont have to sort.
your code is printing the unique result only itself.

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.