my code is giving half answer it is missing some values
Sum of two arrays
hello @purnima11

dont convert array back to number because it is a very big number and we dont have any datatype to store it so simply print ur sum array from index 0 to n.
if carry is there then print carry first and then array.
I don’t clearly understand …can you make changes in my code and highlight it with comments so as to show what has to be done clearly
check this -> https://ide.codingblocks.com/s/223132
i have not made much changes in ur code
just changed return type of function to void
and print sum array.
it fails test case 0 and 2

add comma and space in this if statement as well.
1 Like