結果 : shortest path problem leetcode