DEV Community

Discussion on: Micro Coding Challenges - with solutions

Collapse
 
naveenkumar337 profile image
naveenkumar337

Hello,
Create a function that will add two positive numbers of indefinite size. The numbers are received as strings and the result should be also provided as a string.

solution 1

Can you explain to me why using carry(why need to take 1 if sum greater then 10)? and why we have to do mudular division and why need to add digitsum and carry