Iridescent41
Iridescent41
全部文章
未归档
归档
标签
去牛客网
登录
/
注册
ChenJG41
Never Give Up
全部文章
/ 未归档
(共3篇)
多算法模板整理
1.递归 int name(int n) { if(满足边界条件) return ...; if(满足边界条件) return ...; ... else { sbproblems... ... return name(...) ...
模板
2020-06-20
0
214
bfs&dfs模板
摘自几个月前的帖子。。。 DFS模板:向深处搜索,直到找到解或者走不下去。这一般解决全排列问题 //No.1 Void DFS(deep,...){ if(找到解 || 走不下去了){ ......//根据题意添加 return; } for(扩展方式){ if(...
模板
DFS
BFS
2020-06-21
0
249
链式前向星 模板
#include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int MAXN = 1e3 + 5; const int MAXM = 2 * 1e3 +...
链式前向星
模板
2020-09-16
0
309