摘要: 题意: Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity. (Hard) 分析: 方法1: 利用做过的merge 2 sorted list,将头两个归并 阅读全文
posted @ 2016-08-13 21:41 wangxiaobao1114 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 题意: iven 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-08-13 21:05 wangxiaobao1114 阅读(133) 评论(0) 推荐(0) 编辑