in this question i didn’t understand about the addition how this procedure is taking place in 1st arr it is starting form 2nd index while in 2nd arr it is starting from 1st index
In this ques add doubt
Think of the array as numbers:
ie. first array represents: 1029
and the second array represents: 34567
We need to return the sum of these 2 numbers which is equal to 35596.
Look at the size of array in constraints.
The maximum length of array is 1000, ie we can have 1000 digits
We cannot store this in int or long, so we are storing them as an array and need to calculate the result accordingly.
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.