2015年6月2日
摘要: Given a linked list, swap every two adjacent nodes and return its head.For example,Given1->2->3->4, you should return the list as2->1->4->3.Your algor... 阅读全文
posted @ 2015-06-02 22:04 NealCaffrey989 阅读(123) 评论(0) 推荐(0) 编辑
摘要: Mergeksorted linked lists and return it as one sorted list. Analyze and describe its complexity.本题是多链表融合,可以选择利用归并算法思想,两两链表融合后再归并,也可以一起融合。本文是一起融合的想法,利用... 阅读全文
posted @ 2015-06-02 11:14 NealCaffrey989 阅读(135) 评论(0) 推荐(0) 编辑