摘要: 设计最短路径 用bfs 天然带最短路径 每一个状态是 当前的阶段 和已经访问过的节点 下面是正确但是超时的代码 class Solution: def shortestPathLength(self, graph): """ :type graph: List[List[int]] :rtype: 阅读全文