![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
基本算法
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 · 457 阅读 · 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 · 88 阅读 · 0 评论