面试
文章平均质量分 53
吉娃是只狗
这个作者很懒,什么都没留下…
展开
-
【笔试面试】大数相乘
#include #include #include #include #include using namespace std;//大数乘法---字符串模拟数字相乘void main(){string str1,str2;cin >> str1 >> str2;reverse(str1.begin(),str1.end());reverse(str2.begin(),str2.end());st原创 2015-09-29 22:28:37 · 322 阅读 · 0 评论 -
KMP算法
/**KMP模式匹配 2015.03.17 *** *******/ #include #include #include using namespace std; int const MAX =10; int GetNext(string & pattern ,int (&next)[MAX])// c语言中可以传递一个数组指针 { int length = pattern.si原创 2015-10-17 20:33:21 · 314 阅读 · 0 评论