摘要:
- -简单题处理好进位,还有两个链表不一样长就好/** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */class Solution {public: ListNode *addTwoNumbers(ListNode *l1, ListNode *l2) { // Note: The Solution object is insta... 阅读全文
posted @ 2013-10-09 14:22 1957 阅读(217) 评论(0) 推荐(0) 编辑