摘要: Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest pa... 阅读全文
posted @ 2015-10-22 11:31 AprilCheny 阅读(168) 评论(0) 推荐(0) 编辑
摘要: Write a function to find the longest common prefix string amongst an array of strings.解法:从所有的string的头到尾的字母逐一比较即可。class Solution {public: string lon... 阅读全文
posted @ 2015-10-22 11:27 AprilCheny 阅读(138) 评论(0) 推荐(0) 编辑