Test case not passing

my test cases are not passing wht am i missing???

Hello @kartiksaxena2000 please wait i am checking your code:

hey @kartiksaxena2000 please check this code:


i have given you one test case.
the answer should be
114862.
but your answer is coming out to be different.

Try to rectify your code for this sample test case if the first digit of the both the numbers results into greater then the 10 then you have to carry that carry as well.
think about that it as well.

https://ide.codingblocks.com/s/387343 still one test case is not passing

@kartiksaxena2000 Your code was producing 0 in the start for the this test case: 5
3 4 5 6 7
5
1 2 3 4 5


i have corrected the code and now it is printing the correct result.
Happy Learning!!

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.