Sum-of-two-arrays-


two test cases are failing

Hi Cheshtha,
Suppose if both arrays are of same length, and if on addition of first two elements there is a carry then according to your code this carry will not get printed. For example if input is:
2
5 5
2
5 5

then output should be 1, 1, 0, END
whereas
your code will give output 1, 0, END which is wrong.

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.