随笔分类 -  算法

汉诺塔问题
摘要:#include using namespace std; /*将src针上最上面一个盘子移到dest针上*/ void move(char src,char dest) { cout " > n; cout << "步骤分别是"<<endl; hanoi(n,'A','B','C'); return 0; } 阅读全文

posted @ 2016-03-28 18:01 Tob's_the_top 阅读(154) 评论(0) 推荐(1)

hdu 1009 贪心入门
摘要:Mycode: compile error,i don't know why? Correct code: 阅读全文

posted @ 2016-03-20 00:12 Tob's_the_top 阅读(104) 评论(0) 推荐(0)

八皇后 c++
摘要:  阅读全文

posted @ 2016-03-14 20:46 Tob's_the_top 阅读(140) 评论(0) 推荐(0)

筛法求素数
摘要:  阅读全文

posted @ 2016-03-14 18:28 Tob's_the_top 阅读(94) 评论(0) 推荐(0)

Manacher算法 线性时间求最大回文子串长度
摘要:原理性的东西在这里得到:http://www.open-open.com/lib/view/open1419150233417.html /*Manacher算法*/ #include<iostream> #include<vector> #include<map> #include<stdio.h 阅读全文

posted @ 2016-03-10 16:04 Tob's_the_top 阅读(231) 评论(0) 推荐(0)

导航