上一页 1 2 3 4 5 6 7 ··· 12 下一页
摘要: 原题地址: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 南郭子綦 阅读(2675) 评论(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 南郭子綦 阅读(2340) 评论(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 南郭子綦 阅读(2634) 评论(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 南郭子綦 阅读(3868) 评论(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 南郭子綦 阅读(2805) 评论(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 南郭子綦 阅读(3606) 评论(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 南郭子綦 阅读(3032) 评论(0) 推荐(0) 编辑
摘要: 原题地址:https://oj.leetcode.com/problems/maximum-depth-of-binary-tree/题意:Given a binary tree, find its maximum depth.The maximum depth is the number of n... 阅读全文
posted @ 2014-06-11 16:40 南郭子綦 阅读(3613) 评论(0) 推荐(0) 编辑
摘要: 原题地址:https://oj.leetcode.com/problems/text-justification/题意:Given an array of words and a lengthL, format the text such that each line has exactlyLcha... 阅读全文
posted @ 2014-06-11 15:42 南郭子綦 阅读(2955) 评论(0) 推荐(0) 编辑
摘要: 原题地址:https://oj.leetcode.com/problems/insert-interval/题意:Given a set ofnon-overlappingintervals, insert a new interval into the intervals (merge if ne... 阅读全文
posted @ 2014-06-11 15:17 南郭子綦 阅读(3115) 评论(0) 推荐(0) 编辑
摘要: 原题地址:https://oj.leetcode.com/problems/merge-intervals/题意:Given a collection of intervals, merge all overlapping intervals.For example,Given[1,3],[2,6]... 阅读全文
posted @ 2014-06-11 15:10 南郭子綦 阅读(5160) 评论(3) 推荐(0) 编辑
摘要: 原题地址:https://oj.leetcode.com/problems/maximum-subarray/题意:Find the contiguous subarray within an array (containing at least one number) which has the ... 阅读全文
posted @ 2014-06-11 14:51 南郭子綦 阅读(6193) 评论(0) 推荐(0) 编辑
摘要: 原题地址:https://oj.leetcode.com/problems/jump-game-ii/题意:Given an array of non-negative integers, you are initially positioned at the first index of the ... 阅读全文
posted @ 2014-06-11 14:41 南郭子綦 阅读(3553) 评论(0) 推荐(0) 编辑
摘要: 原题地址:https://oj.leetcode.com/problems/jump-game/题意:Given an array of non-negative integers, you are initially positioned at the first index of the arr... 阅读全文
posted @ 2014-06-11 14:35 南郭子綦 阅读(3377) 评论(0) 推荐(0) 编辑
摘要: 原题地址:https://oj.leetcode.com/problems/wildcard-matching/题意:Implement wildcard pattern matching with support for'?'and'*'.'?' Matches any single charac... 阅读全文
posted @ 2014-06-11 14:18 南郭子綦 阅读(4911) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 12 下一页