摘要: 原题地址:https://oj.leetcode.com/problems/longest-valid-parentheses/题意:Given a string containing just the characters'('and')', find the length of the long... 阅读全文
posted @ 2014-06-10 16:59 南郭子綦 阅读(3411) 评论(1) 推荐(0) 编辑
摘要: 原题地址:https://oj.leetcode.com/problems/next-permutation/题意:Implement next permutation, which rearranges numbers into the lexicographically next greater... 阅读全文
posted @ 2014-06-10 16:03 南郭子綦 阅读(5633) 评论(1) 推荐(0) 编辑
摘要: 原题地址:https://oj.leetcode.com/problems/substring-with-concatenation-of-all-words/题意:You are given a string,S, and a list of words,L, that are all of th... 阅读全文
posted @ 2014-06-10 14:51 南郭子綦 阅读(3850) 评论(2) 推荐(0) 编辑
摘要: 原题地址:https://oj.leetcode.com/problems/remove-element/题意:Given an array and a value, remove all instances of that value in place and return the new len... 阅读全文
posted @ 2014-06-10 13:59 南郭子綦 阅读(3972) 评论(0) 推荐(0) 编辑
摘要: 原题地址:https://oj.leetcode.com/problems/remove-duplicates-from-sorted-array/题意:Given a sorted array, remove the duplicates in place such that each eleme... 阅读全文
posted @ 2014-06-10 13:38 南郭子綦 阅读(6310) 评论(0) 推荐(0) 编辑
摘要: 原题地址:https://oj.leetcode.com/problems/generate-parentheses/题意:Givennpairs of parentheses, write a function to generate all combinations of well-formed... 阅读全文
posted @ 2014-06-10 13:25 南郭子綦 阅读(5308) 评论(0) 推荐(0) 编辑
摘要: 原题地址:https://oj.leetcode.com/problems/valid-parentheses/题意:Given a string containing just the characters'(',')','{','}','['and']', determine if the in... 阅读全文
posted @ 2014-06-10 12:58 南郭子綦 阅读(5366) 评论(1) 推荐(0) 编辑
摘要: 原题地址:https://oj.leetcode.com/problems/letter-combinations-of-a-phone-number/题意:Given a digit string, return all possible letter combinations that the ... 阅读全文
posted @ 2014-06-10 12:47 南郭子綦 阅读(5278) 评论(1) 推荐(0) 编辑
摘要: 原题地址:https://oj.leetcode.com/problems/longest-common-prefix/题意:Write a function to find the longest common prefix string amongst an array of strings.解... 阅读全文
posted @ 2014-06-10 12:37 南郭子綦 阅读(3723) 评论(0) 推荐(0) 编辑
摘要: 原题地址:https://oj.leetcode.com/problems/roman-to-integer/题意:Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range f... 阅读全文
posted @ 2014-06-10 11:54 南郭子綦 阅读(5343) 评论(0) 推荐(0) 编辑
摘要: 原题地址:https://oj.leetcode.com/problems/integer-to-roman/题意:Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range f... 阅读全文
posted @ 2014-06-10 11:16 南郭子綦 阅读(4081) 评论(0) 推荐(0) 编辑
摘要: 原题地址:https://oj.leetcode.com/problems/container-with-most-water/题意:Givennnon-negative integersa1,a2, ...,an, where each represents a point at coordina... 阅读全文
posted @ 2014-06-10 10:46 南郭子綦 阅读(3300) 评论(0) 推荐(0) 编辑
摘要: 原题地址:https://oj.leetcode.com/problems/palindrome-number/题意:Determine whether an integer is a palindrome. Do this without extra space.click to show spo... 阅读全文
posted @ 2014-06-10 10:12 南郭子綦 阅读(4112) 评论(0) 推荐(0) 编辑
摘要: 原题地址:https://oj.leetcode.com/problems/divide-two-integers/题意:Divide two integers without using multiplication, division and mod operator.解题思路:不许用乘、除和求... 阅读全文
posted @ 2014-06-10 09:55 南郭子綦 阅读(5124) 评论(0) 推荐(0) 编辑