摘要: 原题地址: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 南郭子綦 阅读(3612) 评论(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 南郭子綦 阅读(2954) 评论(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 南郭子綦 阅读(3111) 评论(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 南郭子綦 阅读(5158) 评论(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 南郭子綦 阅读(6191) 评论(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 南郭子綦 阅读(3545) 评论(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 南郭子綦 阅读(3374) 评论(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 南郭子綦 阅读(4905) 评论(0) 推荐(0) 编辑
摘要: 原题地址:https://oj.leetcode.com/problems/regular-expression-matching/题意:Implement regular expression matching with support for'.'and'*'.'.' Matches any s... 阅读全文
posted @ 2014-06-11 13:32 南郭子綦 阅读(8405) 评论(0) 推荐(0) 编辑
摘要: 原题地址:https://oj.leetcode.com/problems/multiply-strings/题意:Given two numbers represented as strings, return multiplication of the numbers as a string.N... 阅读全文
posted @ 2014-06-11 11:17 南郭子綦 阅读(4589) 评论(0) 推荐(0) 编辑
摘要: 原题地址:https://oj.leetcode.com/problems/trapping-rain-water/题意:Givennnon-negative integers representing an elevation map where the width of each bar is ... 阅读全文
posted @ 2014-06-11 10:46 南郭子綦 阅读(4052) 评论(0) 推荐(0) 编辑
摘要: 原题地址:https://oj.leetcode.com/problems/count-and-say/题意:The count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 11... 阅读全文
posted @ 2014-06-11 09:55 南郭子綦 阅读(4675) 评论(0) 推荐(0) 编辑