Given a non-negative integer represented as a linked list of digits, plus one to the integer.
The digits are stored such that the most significant digit is at the head of the list.
- recursive solution
c++
1 | /** |
- iterative solution
c++
1 | /** |