369 Plus One Linked List
Given a non-negative integer represented asnon-emptya singly linked list of digits, plus one to the integer.
You may assume the integer do not contain any leading zero, except the number 0 itself.
The digits are stored such that the most significant digit is at the head of the list.
Example:
感觉跟前一题Add Number II好像,估计也是那两种方法做。这里写个递归吧。
Last updated