bfs基础搜索,队列使用
文章平均质量分 82
TPsilence
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Catch That Cow
题目描述:Farmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a pointN (0 ≤ N ≤ 100,000) on a number line and the cow is at a point K原创 2017-01-13 19:11:44 · 321 阅读 · 0 评论 -
A strange lift
题目描述:There is a strange lift.The lift can stop can at every floor as you want, and there is a number Ki(0 <= Ki <= N) on every floor.The lift have just two buttons: up and down.When you at floor原创 2017-01-13 19:35:04 · 251 阅读 · 0 评论 -
Red and Black
题目描述:There is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on a black tile. From a tile, he can move to one of four adjacent tiles. But原创 2017-01-13 18:43:36 · 370 阅读 · 0 评论 -
Knight Moves
题目描述:A friend of you is doing research on the Traveling Knight Problem (TKP) where you are to find the shortest closed tour of knight moves that visits each square of a given set of n squares on原创 2017-01-13 19:46:45 · 358 阅读 · 0 评论 -
A计划
题目描述:可怜的公主在一次次被魔王掳走一次次被骑士们救回来之后,而今,不幸的她再一次面临生命的考验。魔王已经发出消息说将在T时刻吃掉公主,因为他听信谣言说吃公主的肉也能长生不老。年迈的国王正是心急如焚,告招天下勇士来拯救公主。不过公主早已习以为常,她深信智勇的骑士LJ肯定能将她救出。现据密探所报,公主被关在一个两层的迷宫里,迷宫的入口是S(0,0,0),公主的位置用P表示,时空原创 2017-01-13 19:58:52 · 516 阅读 · 0 评论
分享