
字符串
LZY_Starry
It's not too late.
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
2021-07-21 P3375 【模板】KMP字符串匹配
P3375 【模板】KMP字符串匹配 很久没看看算法了。 这是复习。 https://www.luogu.com.cn/problem/P3375 #include<cstdio> #include<iostream> #include<cstring> #include<vector> using namespace std; const int maxn = 1e6 + 7; char s1[maxn], s2[maxn]; int k_nex原创 2021-07-21 16:03:54 · 146 阅读 · 0 评论 -
Trie(前缀树,字典树)
It’s advantage is, LCP (Longest Common Prefix) of two of these strings is the LCA (Lowest Common Ancestor) of their nodes in the trie(a node that we can build the string by writing down the characters原创 2017-08-02 21:15:08 · 498 阅读 · 0 评论 -
Trie模板
简单trie: http://hihocoder.com/problemset/problem/1014// http://hihocoder.com/problemset/problem/1014 #include<bits/stdc++.h> #define pb push_back #define mp make_pair using namespace std;const int max原创 2017-09-25 16:55:59 · 337 阅读 · 0 评论 -
KMP
先贴一个讲的很好很详细的blog http://blog.youkuaiyun.com/v_july_v/article/details/7041827原创 2017-08-02 22:36:53 · 386 阅读 · 0 评论