Leetcode 2492. Minimum Score of a Path Between Two Cities

Posted on Tue 21 March 2023 in Leetcode • Tagged with dfs, bfs, union-find

Question Link : https://leetcode.com/problems/minimum-score-of-a-path-between-two-cities/

Difficulty: Medium

Premium: False

Question

You are given a positive integer n representing n cities numbered from 1 to n. You are also given a 2D array roads where roads[i] = [ai, bi, distancei] indicates that there is a bidirectional road between cities …


Continue reading