2 of my testcases are failing but I cant figure out why? I took big enough arrays?
code: https://ide.codingblocks.com/s/73738
Sum-of-two-arrays
Ishita, your code fails in following test case :
4
1 0 2 9
4
9 0 2 9
The ans should be 1,0,0,5,8,END
But your code is giving 0,0,5,8,END
Try using some other approach for calculating the result and displaying it
1 Like