2015年9月17日

摘要: 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 @ 2015-09-17 23:36 怕忘记 阅读(105) 评论(0) 推荐(0) 编辑
 
摘要: Given a linked list and a valuex, partition it such that all nodes less thanxcome before nodes greater than or equal tox.You should preserve the origi... 阅读全文
posted @ 2015-09-17 23:34 怕忘记 阅读(112) 评论(0) 推荐(0) 编辑
 
摘要: Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area.int maximalRectangle(vector>& mat... 阅读全文
posted @ 2015-09-17 23:33 怕忘记 阅读(122) 评论(0) 推荐(0) 编辑
 
摘要: Givennnon-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the histog... 阅读全文
posted @ 2015-09-17 23:22 怕忘记 阅读(111) 评论(0) 推荐(0) 编辑
 
摘要: Implement strStr().Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.Update (2014-11-02):The si... 阅读全文
posted @ 2015-09-17 22:24 怕忘记 阅读(112) 评论(0) 推荐(0) 编辑