leetcode-链表-2.两数相加
C++版/** * Add Two Numbers * 两数相加*/class Solution { public: ListNode *addTwoNumbers(ListNode *l1, ListNode *l2) { int x=0, y=0, carry=0, sum=0; ListNode *h=NULL, **t=&h; while (l1!=NULL || l2!=NULL)..