摘要: 最长回文串 Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. Example: Example: 回文字符串显然有个特 阅读全文
posted @ 2017-06-04 17:21 泡面小王子 阅读(168) 评论(0) 推荐(0) 编辑
摘要: Determine whether an integer is a palindrome. Do this without extra space. Some hints: Could negative integers be palindromes? (ie, -1) If you are thi 阅读全文
posted @ 2017-06-04 09:56 泡面小王子 阅读(129) 评论(0) 推荐(0) 编辑