注册一亩三分地论坛,查看更多干货!
您需要 登录 才可以下载或查看附件。没有帐号?注册账号 
x
# Enter your code here. Read input from STDIN. Print output to STDOUT
/* 1. Design a solution when given a connected graph, Find all paths
<return paths> getPath(Graph graph, align="left">4 - 5 - 6 | X | X | 7 - 8 - 9
*/
BFS, DFS 都可以 需要给出2中以上解法 |