11 2019 档案

摘要:kmp,next带优化 #include<iostream> #include<bits/stdc++.h> using namespace std; void getnext(char p[],int next[]){ next[0]=-1; int i=0,j=-1; int n=strlen( 阅读全文
posted @ 2019-11-14 11:34 acwarming 阅读(211) 评论(0) 推荐(0)
摘要:#include<bits/stdc++.h> #define MaxSize 100 using namespace std; typedef struct Node {//定义二叉树结构 char data; struct Node *lchild,*rchild; }*BiTree,BiTNo 阅读全文
posted @ 2019-11-06 19:25 acwarming 阅读(272) 评论(0) 推荐(0)
摘要:#include <iostream> #include <cstdio> #include<bits/stdc++.h> using namespace std; //栈 typedef struct{ int *base; int *top; int stacksize; }sqstack; v 阅读全文
posted @ 2019-11-05 17:02 acwarming 阅读(167) 评论(0) 推荐(0)