
基本算法
NUAA丶无痕
让学习成为一种习惯,我们的目标是星辰大海!
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
大整数乘法的实现
#include<bits/stdc++.h> using namespace std; string Big_Mul(string a,string b) { string result = ""; if( (a[0] =='-' && b[0] != '-' ) || (a[0] != '-' && b[0] == '-' ) ) ...原创 2019-03-09 13:33:48 · 499 阅读 · 0 评论 -
Manacher算法
具体算法思想参考大佬的文章,比较详细 https://subetter.com/algorithm/manacher-algorithm.html?tdsourcetag=s_pctim_aiomsg 我在代码的基础上做了稍微修改,可以返回最大回文子串的长度,也可以返回最大回文子串。 代码: #include<bits/stdc++.h> using namespace std...原创 2019-03-10 15:07:32 · 128 阅读 · 0 评论