leetcode-2
https://leetcode.com/problems/add-two-numbers/
Keep track of the carry using a variable and simulate digits-by-digits sum starting from the head of list, which contains the least-significant digit.
1 | /** |
https://leetcode.com/problems/add-two-numbers/
Keep track of the carry using a variable and simulate digits-by-digits sum starting from the head of list, which contains the least-significant digit.
1 | /** |