1 testcase is failing. Please help !
Sum of two arrays
@vaishnavtannu output is coming wrong even for the sample input…are you sure you shared the correct code?
now the arrays are like
9 2 0 1 0
7 6 5 4 3
but you have not appended the extra 0 in the end, to make lengths equal.It is working well for arrays with equal lengths
Yes I shared the correct code.
I submitted it , but testcase 0 fails. Also for sample testcase i am getting 8, 5, 5, 9, 6, END
instead of 3, 5, 5, 9, 6, END.
Please tell how to resolve ?
@vaishnavtannu add extra 0s in the end of the smaller array to make them of equal length like I have explained above, it should work fine then.