02 2016 档案

马拉车求最大回文字串
摘要:改进的代码 (输入字符串为s): int getLongestPalindrome(string s) { string str; str.push_back('&'); for (char item : s) { str.push_back('#'); str.push_back(item); } 阅读全文
posted @ 2016-02-26 18:10 蜗牛快爬 阅读(213) 评论(0) 推荐(0) 编辑

 
点击右上角即可分享
微信分享提示