There are n cities numbered 1 to n and a list of two-way roads, where roads[i] = [a, b, distance]. The score of a path is the smallest distance among the roads it uses. A path may repeat roads and cities, and may visit 1 and n many times. Return the minimum possible score of a path from city 1 to city n. A path between them is guaranteed to exist.
There are n cities numbered 1 to n and a list of two-way roads, where roads[i] = [a, b, distance]. The score of a path is the smallest distance among the roads it uses. A path may repeat roads and cities, and may visit 1 and n many times. Return the minimum possible score of a path from city 1 to city n. A path between them is guaranteed to exist.