摘要: Question Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity. Solution 1. 归并排序中的Merge过程。 2. 时间复杂度: 节点数目 阅读全文
posted @ 2017-11-01 15:21 清水汪汪 阅读(116) 评论(0) 推荐(0) 编辑
摘要: Question Given a list, rotate the list to the right by k places, where k is non negative. For example: Given1 2 3 4 5 NULLand k =2, return4 5 1 2 3 NU 阅读全文
posted @ 2017-11-01 14:24 清水汪汪 阅读(122) 评论(0) 推荐(0) 编辑