摘要: 原题地址:https://oj.leetcode.com/problems/string-to-integer-atoi/题意:Implementatoito convert a string to an integer.Hint:Carefully consider all possible in... 阅读全文
posted @ 2014-06-09 14:20 南郭子綦 阅读(6941) 评论(0) 推荐(0) 编辑
摘要: 原题地址:https://oj.leetcode.com/problems/zigzag-conversion/题意:The string"PAYPALISHIRING"is written in a zigzag pattern on a given number of rows like thi... 阅读全文
posted @ 2014-06-09 13:42 南郭子綦 阅读(4285) 评论(0) 推荐(0) 编辑
摘要: 原题地址:https://oj.leetcode.com/problems/reverse-integer/题意:Reverse digits of an integer.Example1:x = 123, return 321Example2:x = -123, return -321解题思路:翻... 阅读全文
posted @ 2014-06-09 13:35 南郭子綦 阅读(4797) 评论(0) 推荐(0) 编辑
摘要: 原题地址:https://oj.leetcode.com/problems/longest-palindromic-substring/题意:Given a stringS, find the longest palindromic substring inS. You may assume tha... 阅读全文
posted @ 2014-06-09 13:25 南郭子綦 阅读(6926) 评论(0) 推荐(0) 编辑
摘要: 原题地址:https://oj.leetcode.com/problems/combination-sum-ii/题意:Given a collection of candidate numbers (C) and a target number (T), find all unique combi... 阅读全文
posted @ 2014-06-09 11:48 南郭子綦 阅读(3579) 评论(0) 推荐(0) 编辑
摘要: 原题地址:https://oj.leetcode.com/problems/combination-sum/题意:Given a set of candidate numbers (C) and a target number (T), find all unique combinations in... 阅读全文
posted @ 2014-06-09 11:32 南郭子綦 阅读(7932) 评论(6) 推荐(0) 编辑
摘要: 原题地址:https://oj.leetcode.com/problems/first-missing-positive/题意:Given an unsorted integer array, find the first missing positive integer.For example,G... 阅读全文
posted @ 2014-06-09 11:20 南郭子綦 阅读(2869) 评论(0) 推荐(0) 编辑
摘要: 原题地址:https://oj.leetcode.com/problems/search-in-rotated-sorted-array/题意:Suppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e... 阅读全文
posted @ 2014-06-09 10:52 南郭子綦 阅读(3938) 评论(0) 推荐(0) 编辑
摘要: 原题地址:https://oj.leetcode.com/problems/scramble-string/题意:Given a strings1, we may represent it as a binary tree by partitioning it to two non-empty su... 阅读全文
posted @ 2014-06-09 10:39 南郭子綦 阅读(2299) 评论(0) 推荐(0) 编辑
摘要: 原题地址:https://oj.leetcode.com/problems/simplify-path/题意:Given an absolute path for a file (Unix-style), simplify it.For example,path="/home/", =>"/home... 阅读全文
posted @ 2014-06-09 09:53 南郭子綦 阅读(2883) 评论(0) 推荐(0) 编辑