摘要: 原题地址:https://oj.leetcode.com/problems/maximal-rectangle/题意:Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all... 阅读全文
posted @ 2014-06-12 16:53 南郭子綦 阅读(3130) 评论(0) 推荐(0) 编辑
摘要: 原题地址:https://oj.leetcode.com/problems/largest-rectangle-in-histogram/题意:Givennnon-negative integers representing the histogram's bar height where the ... 阅读全文
posted @ 2014-06-12 15:12 南郭子綦 阅读(4595) 评论(0) 推荐(0) 编辑
摘要: 原题地址:https://oj.leetcode.com/problems/decode-ways/题意:A message containing letters fromA-Zis being encoded to numbers using the following mapping:'A' -... 阅读全文
posted @ 2014-06-12 14:33 南郭子綦 阅读(5243) 评论(0) 推荐(0) 编辑
摘要: 原题地址:https://oj.leetcode.com/problems/gray-code/题意:The gray code is a binary numeral system where two successive values differ in only one bit.Given a... 阅读全文
posted @ 2014-06-12 13:33 南郭子綦 阅读(2674) 评论(0) 推荐(0) 编辑
摘要: 原题地址:https://oj.leetcode.com/problems/search-in-rotated-sorted-array-ii/题意:Follow up for "Search in Rotated Sorted Array":What ifduplicatesare allowed... 阅读全文
posted @ 2014-06-12 12:00 南郭子綦 阅读(2339) 评论(1) 推荐(0) 编辑
摘要: 原题地址:https://oj.leetcode.com/problems/remove-duplicates-from-sorted-list-ii/题意:Given a sorted linked list, delete all nodes that have duplicate number... 阅读全文
posted @ 2014-06-12 11:25 南郭子綦 阅读(2633) 评论(0) 推荐(0) 编辑
摘要: 原题地址:https://oj.leetcode.com/problems/remove-duplicates-from-sorted-list/题意:Given a sorted linked list, delete all duplicates such that each element a... 阅读全文
posted @ 2014-06-12 10:52 南郭子綦 阅读(3866) 评论(0) 推荐(0) 编辑
摘要: 原题地址:https://oj.leetcode.com/problems/remove-duplicates-from-sorted-array-ii/题意:Follow up for "Remove Duplicates":What if duplicates are allowed at mo... 阅读全文
posted @ 2014-06-12 10:49 南郭子綦 阅读(2800) 评论(0) 推荐(0) 编辑
摘要: 原题地址:https://oj.leetcode.com/problems/reverse-linked-list-ii/题意:Reverse a linked list from positionmton. Do it in-place and in one-pass.For example:Gi... 阅读全文
posted @ 2014-06-12 10:05 南郭子綦 阅读(3603) 评论(0) 推荐(0) 编辑
摘要: 原题地址:https://oj.leetcode.com/problems/partition-list/题意:Given a linked list and a valuex, partition it such that all nodes less thanxcome before nodes... 阅读全文
posted @ 2014-06-12 09:38 南郭子綦 阅读(3031) 评论(0) 推荐(0) 编辑