摘要: 题目: Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity. 题目大意: 给定k条有序链表,求k条链表有序合并后的链表。 思路: 看到这... 阅读全文
posted @ 2016-04-20 23:43 Jung_zhang 阅读(153) 评论(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 ... 阅读全文
posted @ 2016-04-20 19:57 Jung_zhang 阅读(519) 评论(0) 推荐(0) 编辑