
程序设计与算法
文章平均质量分 79
唯爱的单
这个作者很懒,什么都没留下…
展开
-
简单迷宫问题的求解-BFS
描述定义一个二维数组:int maze[5][5] = { 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, ...原创 2018-06-02 16:47:08 · 602 阅读 · 0 评论 -
Pots-简单的BFS问题
描述You are given two pots, having the volume of A and B liters respectively. The following operations can be performed:FILL(i) fill the pot i (1 ≤ i ≤ 2) from the tap;DROP(i) empty the pot ...原创 2018-06-03 16:06:47 · 252 阅读 · 0 评论