Arrays-Sum Of Two Arrays problem

this is my code https://ide.codingblocks.com/s/86444
cannot able to pass test cases 2 and 4 .
why is this so?

Your code fails at the following test case,
4
1 0 2 9
4
9 0 2 9
The expected output is : 1, 0, 0, 5, 8, END
But your code gives only 0, 0, 5, 8, END
kindly try to modify your code accordingly.

1 Like