专题文章
时长:00:00更新时间:2020-11-09 08:10:57
Crackingcodinginterview(4.2)有向图判断任意2点之间是否有一:4.2 Given a directed graph, design an algorithm to find out whether there is a route between two nodes. 1.图的存储使用邻接矩阵 2.使用邻接矩阵的过程中,必须给每个节点编号(0,1...) 3.可以写一个map函数给按一定规则所有节点编号(本
查看详情