Xiaowo

I Lay My Love On You~

迷宫问题 DFS

DFS要点: 1.根据是否需要“找到可达路径立即结束”,可以给DFS函数设置返回值为int或void,这样的话可根据返回值判断return(当然也可以设置一个全局变量flag,效果相同,但感觉返回值更好); 2.DFS函数传给下一次递归的变量视情况而定,一般情况下是路径的长度,每次都+1; 3.D...

2015-06-28 17:29:04

阅读数:1610

评论数:0

杭电ACM 1022 Train Problem I

Problem Description As the new term comes, the Ignatius Train Station is very busy nowadays. A lot of student want to get back to school by train(be...

2015-01-15 16:55:29

阅读数:758

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭