摘要: Excel Sheet Column TitleGiven a non-zero positive integer, return its corresponding column title as appear in an Excel sheet.For example: 1 -> A ... 阅读全文
posted @ 2014-12-20 21:06 陆草纯 阅读(8491) 评论(6) 推荐(0)
摘要: Letter Combinations of a Phone NumberGiven a digit string, return all possible letter combinations that the number could represent.A mapping of digit ... 阅读全文
posted @ 2014-12-20 14:08 陆草纯 阅读(3970) 评论(0) 推荐(0)
摘要: Valid ParenthesesGiven a string containing just the characters'(',')','{','}','['and']', determine if the input string is valid.The brackets must clos... 阅读全文
posted @ 2014-12-20 11:44 陆草纯 阅读(196) 评论(0) 推荐(0)
摘要: Generate ParenthesesGivennpairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, givenn= 3, a sol... 阅读全文
posted @ 2014-12-20 11:01 陆草纯 阅读(269) 评论(0) 推荐(0)
摘要: Merge k Sorted ListsMergeksorted linked lists and return it as one sorted list. Analyze and describe its complexity.多路归并。1、用make_heap函数维护一个大小为k的最小堆。注:... 阅读全文
posted @ 2014-12-20 10:21 陆草纯 阅读(378) 评论(0) 推荐(0)