摘要: 1 #include 2 #include 3 4 using namespace std; 5 6 class Node{ 7 public: 8 int data; 9 Node *L; 10 Node *R; 11 Node():da... 阅读全文
posted @ 2015-12-21 23:59 zhou09 阅读(174) 评论(0) 推荐(0) 编辑
摘要: privatestaticvoid getnext(String p,int [] next){for(int i =0;i<p.length();i++){next[i]=0;while(next[i]<i-1 && p.charAt(next[i])==p.charAt(i-1-next[i])... 阅读全文
posted @ 2015-12-21 12:40 zhou09 阅读(183) 评论(0) 推荐(0) 编辑