My Code is giving wrong answer when I tried to print all the subarrays with sum zero. Can you please check and let me know where am I going wrong ?
IDE : https://ide.codingblocks.com/s/196152
Test Case i Tried :
5 //size of the array
6 -6 1 2 -3 //elements
Subarray_with_sum_zero implementation
@aman_ishan You are missing the case where you have to take sum value equal to zero. Then your answer will be yes.
Can u pls modify the code ?
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.