摘要: 原题地址:https://oj.leetcode.com/problems/gas-station/题意:There areNgas stations along a circular route, where the amount of gas at stationiisgas[i].You ha... 阅读全文
posted @ 2014-05-30 14:20 南郭子綦 阅读(2761) 评论(0) 推荐(0) 编辑
摘要: 原题地址:https://oj.leetcode.com/problems/candy/题意:There areNchildren standing in a line. Each child is assigned a rating value.You are giving candies to ... 阅读全文
posted @ 2014-05-30 13:20 南郭子綦 阅读(1672) 评论(0) 推荐(0) 编辑
摘要: 原题地址:https://oj.leetcode.com/problems/word-break-ii/题意:Given a stringsand a dictionary of wordsdict, add spaces insto construct a sentence where each ... 阅读全文
posted @ 2014-05-30 11:53 南郭子綦 阅读(4489) 评论(1) 推荐(0) 编辑
摘要: 原题地址:https://oj.leetcode.com/problems/word-break/题意:Given a stringsand a dictionary of wordsdict, determine ifscan be segmented into a space-separated... 阅读全文
posted @ 2014-05-30 10:53 南郭子綦 阅读(6055) 评论(1) 推荐(0) 编辑
摘要: 原题地址:https://oj.leetcode.com/problems/max-points-on-a-line/题意:Givennpoints on a 2D plane, find the maximum number of points that lie on the same strai... 阅读全文
posted @ 2014-05-30 10:35 南郭子綦 阅读(2782) 评论(1) 推荐(0) 编辑
摘要: 原题地址:https://oj.leetcode.com/problems/evaluate-reverse-polish-notation/题意:Evaluate the value of an arithmetic expression inReverse Polish Notation.Val... 阅读全文
posted @ 2014-05-30 09:55 南郭子綦 阅读(3063) 评论(0) 推荐(0) 编辑
摘要: 原题地址:https://oj.leetcode.com/problems/reverse-words-in-a-string/题意:Given an input string, reverse the string word by word.For example,Given s = "the s... 阅读全文
posted @ 2014-05-30 09:27 南郭子綦 阅读(2917) 评论(0) 推荐(0) 编辑