question https://hack.codingblocks.com/contests/c/512/513
my code
https://ide.codingblocks.com/s/52627
Subset problem re
Hey Sarthak, your code is not giving the correct output when there are repeated numbers in the array. for eg.
input:
4
1
2
1
2
3
your code’s output:
3
1 2 2 1 1 2
but the expected output is:
4
1 2 1 2 2 1 1 2
1 Like