摘要: class Solution { public: ListNode* swapPairs(ListNode* head) { ListNode* res=NULL; if(!head) return res; ListNode* front=head,*back=head->next,*n,*p=n 阅读全文
posted @ 2020-07-07 10:53 阿破 阅读(171) 评论(0) 推荐(0)
摘要: class Solution { public: ListNode* mergeKLists(vector<ListNode*>& lists) { ListNode* head=new ListNode(0),*minval=NULL,*p=head; int n=lists.size(),m=0 阅读全文
posted @ 2020-07-07 10:13 阿破 阅读(116) 评论(0) 推荐(0)