摘要: 题意 Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity. 将K个排好序的链表合并成一个 解法 和之前合并两个有序链表那题不同,那题用的是两个指针来分别记录 阅读全文
posted @ 2016-09-10 18:22 Decouple 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 题意 Given n pairs of parentheses, write a function to generate all combinations of well formed parentheses. For example, given n = 3, a solution set is 阅读全文
posted @ 2016-09-10 17:48 Decouple 阅读(282) 评论(0) 推荐(0) 编辑