2014年9月30日

[leetcode]Merge k Sorted Lists @ Python [基础知识: heap]

摘要: 原题地址:https://oj.leetcode.com/problems/merge-k-sorted-lists/题意:Mergeksorted linked lists and return it as one sorted list. Analyze and describe its com... 阅读全文

posted @ 2014-09-30 22:54 AIDasr 阅读(275) 评论(0) 推荐(0) 编辑

[leetcode] Largest Rectangle in Histogram @ Python [图解] [很难]

摘要: 原题地址:https://oj.leetcode.com/problems/largest-rectangle-in-histogram/题意:Givennnon-negative integers representing the histogram's bar height where the ... 阅读全文

posted @ 2014-09-30 09:50 AIDasr 阅读(362) 评论(0) 推荐(0) 编辑

[leetcode] Count and Say @ Python

摘要: The count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ...1is read off as"one 1"or11.11is read off as"tw... 阅读全文

posted @ 2014-09-30 06:34 AIDasr 阅读(278) 评论(0) 推荐(0) 编辑

[leetcode] Scramble String @python

摘要: Given a strings1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively.Below is one possible representation... 阅读全文

posted @ 2014-09-30 00:06 AIDasr 阅读(425) 评论(0) 推荐(0) 编辑

导航