Minimum Score of a Path Between Two Cities

Solution
Verifying access...

Time Complexity

O(N + E)

Space Complexity

O(N + E)