随笔分类 -  leetcode

摘要:题目: Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring.For "(()", the 阅读全文
posted @ 2016-07-13 10:26 大雄的哆啦A梦 阅读(198) 评论(0) 推荐(0)
摘要:原题: The count-and-say sequence is the sequence of integers beginning as follows: 1, 11, 21, 1211, 111221, ... 1 is read off as "one 1" or 11.11 is rea 阅读全文
posted @ 2016-07-03 23:01 大雄的哆啦A梦 阅读(328) 评论(0) 推荐(0)
摘要:题目描述: Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique 阅读全文
posted @ 2016-06-30 16:07 大雄的哆啦A梦 阅读(328) 评论(0) 推荐(0)