Subsets - Recursion @HB

https://ide.codingblocks.com/#/s/31651
https://hack.codingblocks.com/contests/c/452/76

Why everything is being printed more than once?

https://ide.codingblocks.com/s/33318

I have made the required changes and added the comments. Also i have commented the mistake you need to correct to get a correct answer for this problem. Try that, and comment here if not able to solve.

But this still shows wrong answer in first test case

I have added a comment. You are supposed to make changes and then try submitting it.If you are not able to do so, i will send you the solution.