
字符串
nianhuatingyu
这个作者很懒,什么都没留下…
展开
-
最长回文字符串--manacher算法
/*************************************************** *@time 2016/09/01 13:49 *@place Ctrip.15#.9f *@descrption 马拉车(manacher)算法计算一个字符串中回文字符串的长度,用到了动态规划的思想 *****************************************原创 2016-09-01 14:09:44 · 311 阅读 · 0 评论 -
KMP字符串匹配
#include #include #include using namespace std; void creatNext(char* str,int* next,int len) { next[0]=0; for(int i=1;i<len;i++) { if(str[next[i-1]]==str[i]) { n原创 2016-09-17 16:45:41 · 219 阅读 · 0 评论 -
Java字符串
StringUtils类 用过C#的同学应该有这样一种感觉,C#中的string类的方法要比java中的String类方法丰富的多。不过有了StringUtils后,Java 对字符串的处理便锦上添花了 StringUtils存在于包org.apache.commons.lang.StringUtils中。它是对java.lang.String的补充。isEmpty 此方法对null安全,即S原创 2017-03-20 11:19:50 · 272 阅读 · 0 评论