There is a country with n cities labeled from n edges, where edges[i] =
You are given an integer array passingFees of length n, where passingFees[j] is the fee required to visit city maxTime.
You start at city n n
Return the minimum cost to travel from city n maxTime. If no such route exists within the given time limit, return
Constraints:
maxTime
n passingFees.length
n
n edges.length
n
passingFees[j]
The graph may contain multiple edges between two nodes.
The graph does not contain self loops.
There is a country with n cities labeled from n edges, where edges[i] =
You are given an integer array passingFees of length n, where passingFees[j] is the fee required to visit city maxTime.
You start at city n n
Return the minimum cost to travel from city n maxTime. If no such route exists within the given time limit, return
Constraints:
maxTime
n passingFees.length
n
n edges.length
n
passingFees[j]
The graph may contain multiple edges between two nodes.
The graph does not contain self loops.