I am not able to understand the sample input and output of this question.
Arrays-sum of two arrays
@Aryan_chauhan It is just simple addition.
Consider Sample Input:
INPUT
4
1 0 2 9
5
3 4 5 6 7
OUTPUT
3, 5, 5, 9, 6, END
Consider this:
__1 0 2 9
+34 5 6 7
_________on adding
3 5 5 9 6
I am using this concept and my output is correct but my testcases are wrong.
@Aryan_chauhan Your approach may be wrong. Check by taking other sample cases.
3
5 5 5
3
5 5 5
expected output is:
1, 1, 1, 0, END
You have to handle all the carries correctly.