- 博客(2)
- 收藏
- 关注
原创 【无标题】BFS广度优先搜索解决迷宫问题(超简单)
#include<iostream>#include<queue>#include<cstdlib>using namespace std;class point{public: int x; int y; int step;};//初始化地图void create_map(int arr[][100], int temparr[][100], int x_num,int y_num){ for (int i = 0; i < ...
2022-04-04 14:17:18
578
原创 kmp算法中,Next数组求解(超简单)
#include<iostream>#include<string>#include<vector>using namespace std;void getnext(int next[], string str){ int j = 0; next[0] = 0; for (int i = 1; i < str.size(); i++) { while (j > 0 && str[i] ...
2022-04-04 13:46:45
217
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅