ARRAYS-SUM OF TWO ARRAYS test cases fail

Problem link
My solution: link
I don’t know why but two of the test cases are failing. I have tried all the possible test cases I could. Any suggestion why are they failing?

Hey Raghav, your code will not work if you are adding 2 arrays of same size.
for eg.
5
5 9 0 2 9
5
9 4 5 6 7

check your code for this case.
Hope this helps :slight_smile:

Changed your code a bit. Added the case also, hope it helps.
link:https://ide.codingblocks.com/s/42624

test your code for
input :
1
9
2
99
output should be:
1 0 8 END

but your code gave:
0 8 END