Question: counting number of subtrees with given sum [https://github.com/saidrishya/geeksforgeeks-solutions/blob/master/counting%20number%20of%20subtrees%20with%20given%20sum]
Your code will not work for the below test case
4 0 1 N 2 0 -2 N -4 -1 -3 N 0 -3
-5
its correct answer is 3
and your code is giving 2
Question: counting number of subtrees with given sum [https://github.com/saidrishya/geeksforgeeks-solutions/blob/master/counting%20number%20of%20subtrees%20with%20given%20sum]
Your code will not work for the below test case
4 0 1 N 2 0 -2 N -4 -1 -3 N 0 -3
-5
its correct answer is 3
and your code is giving 2