摘要: Implement strStr(). Returns the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack. 分析: 给出两个字符串,查询第二个字符串是否在第 阅读全文
posted @ 2016-08-05 18:55 冰凌花花~ 阅读(135) 评论(0) 推荐(0)
摘要: Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring. For "(()", the lo 阅读全文
posted @ 2016-08-05 12:50 冰凌花花~ 阅读(136) 评论(1) 推荐(0)