摘要: 题目: Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity 思路1: 依次归并排序,首先归并前两个,然后归并完成的链表依次和剩下的链表进行归并排序 时间复杂 阅读全文
posted @ 2016-05-30 20:17 沧浪少年 阅读(573) 评论(0) 推荐(0) 编辑