摘要: Shortest Palindrome TLE:用isPalin function肯定会超时,最好的方法是先reverse string然后再和自身比较 class Solution(object): def shortestPalindrome(self, s): """ :type s: str 阅读全文
posted @ 2016-06-09 05:22 absolute100 阅读(72) 评论(0) 推荐(0) 编辑