楼主我想问下,第二题中你在DFS的时候,在遍历同一层的时候,你在计算res的时候,不应该是Math.max(tmpRes, res) + map[start][i]吗?这样的话返回给上一层的时候才是一个path上的时间。