BFS 队列
文章平均质量分 88
a1204675546
.zzz
展开
-
bfs 队列的使用
Plague Inc. is a famous game, which player develop virus to ruin the world. JSZKC wants to model this game. Let's consider the world has N\times MN×M cities. The world has NN rows and MMcolumns...原创 2018-07-24 17:55:28 · 508 阅读 · 0 评论 -
BFS
题目: 51Nod 1384 全排序 点此链接 给出一个字符串S(可能有重复的字符),按照字典序从小到大,输出S包括的字符组成的所有排列。例如:S = "1312", 输出为: 1123 1132 1213 1231 1312 1321 2113 2131 2311 3112 3121 3211 ...原创 2018-07-25 14:57:01 · 174 阅读 · 0 评论