摘要: #include"iostream" #include"cstring" #include"algorithm" using namespace std; typedef struct { char ch; int weight; int parent,lchild,rchild; }HTNode, 阅读全文
posted @ 2020-09-30 23:49 TiSou1 阅读(895) 评论(0) 推荐(0)
摘要: 1.BF匹配 #include"iostream" using namespace std; string s,p; int bf(){ int i,j; i = j = 0; int li = s.length(); int lp = p.length(); while(i < li && j < 阅读全文
posted @ 2020-09-30 23:35 TiSou1 阅读(158) 评论(0) 推荐(0)