摘要: Definition for singly-linked list./** * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} * }; */Method 1: (Double-Pointer)class Solution {public: ListNode *mergeTwoLists(ListNode *l1, ListNode *l2) { ListNode *p1 = NULL; ListNode *... 阅读全文
posted @ 2013-10-19 07:29 WinsCoder 阅读(119) 评论(0) 推荐(0) 编辑