LeetCode
Connecting Cities With Minimum Cost
Click
here
for an explanation.