搜索之dfs与bfs
JooooohnDoe
自己选择的路,跪着也要走完
展开
-
dfs入门
dfs经典入门题 Zesty Zapus Due to recent rains, water has pooled in various places in Farmer John's field, which is represented by a rectangle of N x M (1 <= N <= 100; 1 <= M <= 100) squares.原创 2017-01-09 20:14:48 · 268 阅读 · 0 评论 -
dfs入门(2)
dfs入门经典(2) Xenial Xerus 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 on原创 2017-01-11 00:12:20 · 363 阅读 · 0 评论