You are given a positive integer n representing n cities numbered from n. You are also given a roads where roads[i] = [a_i, b_i, distance_i] denotes a bidirectional road connecting city a_i and city b_i with a length equal to distance_i.
The score of a path between two cities is defined as the minimum distance among all roads traversed along that path.
Return the minimum possible score of a path between city n.
Note: A path is a sequence of roads between two cities. A path is allowed to visit the same city or traverse the same road multiple times.
Constraints:
n
roads.length
roads[i].length
a_i, b_i n
a_i b_i
distance_i
There are no repeated edges.
There is at least one path between n.
You are given a positive integer n representing n cities numbered from n. You are also given a roads where roads[i] = [a_i, b_i, distance_i] denotes a bidirectional road connecting city a_i and city b_i with a length equal to distance_i.
The score of a path between two cities is defined as the minimum distance among all roads traversed along that path.
Return the minimum possible score of a path between city n.
Note: A path is a sequence of roads between two cities. A path is allowed to visit the same city or traverse the same road multiple times.
Constraints:
n
roads.length
roads[i].length
a_i, b_i n
a_i b_i
distance_i
There are no repeated edges.
There is at least one path between n.