摘要: Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. 该题是要求合并两 阅读全文
posted @ 2016-08-14 22:47 gremount 阅读(147) 评论(0) 推荐(0)
摘要: Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity. 这道题如果有第21题 合并两个链表的基础就会比较容易,具体合并链表的时候有两种思路 (1)如果k个li 阅读全文
posted @ 2016-08-14 22:19 gremount 阅读(167) 评论(0) 推荐(0)