Explain the question

I am unable to understand the question. Here, if we add the two arrays , we get o/p as different frome the excepted o/p. Can u explain this question.

Hey @bharath_gopishetti,

In this question we are given 2 arrays (containing digits) representing numbers and we need to calculate the sum of these 2 numbers. Looking at the constraints we can see that we can have a maximum 1000 length of array (or 1000 digits) in each array, so we cannot store the result in a int or long variable, and we need to use an array to store our result.

For the given test case:
4
1 0 2 9
5
3 4 5 6 7

Think of the array as numbers:
ie. first array represents the number: 1029
and the second array represents the number: 34567

We need to return the sum of these 2 numbers which is equal to 35596.

So, the expected output is: 3, 5, 5, 9, 6, END

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.