摘要:
刷 July 14 2019 还是挺难的,又过了一遍KMP. 最直接的办法是楞做。 abcd = bcd abcd aacecaaa = a aacecaaa 说白了就是找到给定String里面longest palindrome prefix。 怎么找呢? 最直观的做法就是左右同时往中间,扫到相遇 阅读全文
posted @ 2016-11-14 04:36
哇呀呀..生气啦~
阅读(295)
评论(0)
推荐(0)
摘要:
这个题不怎么容易。。 正常做两头只找大小写和数字。 用rex简单很多。。 java public class Solution { public boolean isPalindrome(String s) { int l = 0; s = s.trim().toLowerCase().replac 阅读全文
posted @ 2016-11-14 03:50
哇呀呀..生气啦~
阅读(85)
评论(0)
推荐(0)

浙公网安备 33010602011771号