Need help with logic

sol:https://ide.codingblocks.com/s/383091

prob: https://hack.codingblocks.com/app/contests/1975/931/problem

Hey @raghav007 do you want me to tell you how to solve this problem?

I want help with aligning the elements of the two array in order for them to be added properly

Take this for reference


In this code we are calculating sum of two arrays from backward by maintaining a carry based on length if both the array. Still have an issue in it, feel free to ask.

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.