i checked my code for all kinds of input and it works properly but still
getting one wrong ans on submission
my code
https://ide.codingblocks.com/s/41058
questn link
https://hack.codingblocks.com/contests/c/512/136
i checked my code for all kinds of input and it works properly but still
getting one wrong ans on submission
my code
https://ide.codingblocks.com/s/41058
questn link
https://hack.codingblocks.com/contests/c/512/136
No, actually ur code will not work for many test cases
You can debug ur code with this test case
4
-1 -4 -3 5
As the constraint is so small , generate all the subsets of the given array an find wheather sum is zero or not .
i will try to make all the subsets now