2. Add Two Numbers

class Solution { public: ListNode* addTwoNumbers(ListNode* l1, ListNode* l2) { ListNode* pHead = new ListNode(0);         ListNode* p = pHead;         int carry = 0;         while(l1 || l2 || carry)  
相關文章
相關標籤/搜索