i want to print all subarray equal tot arget sum suppose array is 1 2 3 4 56
sum=6
so it should print 1 2 3
2 4
1 5
6
solve in c++ do not use recursion and vector
i want to print all subarray equal tot arget sum suppose array is 1 2 3 4 56
sum=6
so it should print 1 2 3
2 4
1 5
6
solve in c++ do not use recursion and vector