All test cases not passing
U need to find all subset possible
for the given array
if u dont know how to create subset
read this
This code is not running for 1 test case like: 3 1 2 -1 can u check
@supratik260699 In your code you are taking sum of only two number and checking if they add upto zero, instead you need to check the sum of subset. This is a problem of backtracking. You need to consider two cases for every position you include number at that position or you donot and move to next.
Code for reference.
If this resolves your doubt mark it as resolved.