DFS + BFS
c++实现的DFS和BFS
BUPT留白
从模仿到超越,我还在路上!仍需努力,砥砺前行!
展开
-
Red and Black
Red and BlackThere 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原创 2017-07-31 23:32:14 · 207 阅读 · 0 评论 -
Tempter of the Bone
Tempter of the BoneThe doggie found a bone in an ancient maze, which fascinated him a lot. However, when he picked it up, the maze began to shake, and the doggie could feel the ground sinkin原创 2017-08-01 18:10:24 · 216 阅读 · 0 评论 -
Fox And Two Dots
Fox And Two DotsFox Ciel is playing a mobile puzzle game called "Two Dots". The basic levels are played on a board of size n × m cells, like this:Each cell contains a dot that has some color原创 2017-08-01 18:18:04 · 204 阅读 · 0 评论 -
Oil Deposits
Oil DepositsThe GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large rectangular region of land at a time, and creates a原创 2017-08-01 18:15:22 · 195 阅读 · 0 评论 -
Number Transformation
Number TransformationIn this problem, you are given an integer number s. You can transform any integer number A to another integer numberB by adding x to A. This x is an integer number which i原创 2017-08-08 20:19:50 · 310 阅读 · 0 评论 -
How Many Equations Can You Find
How Many Equations Can You FindNow give you an string which only contains 0, 1 ,2 ,3 ,4 ,5 ,6 ,7 ,8 ,9.You are asked to add the sign ‘+’ or ’-’ between the characters. Just like give you a strin原创 2017-08-08 20:22:58 · 355 阅读 · 0 评论