Yao-Hui Chua
Welcome to my site! I use this space mostly to pen my thoughts on coding-related topics 👨💻🤖.
There are N cities. You are given an array of connections. Each connection describes the cost of connecting one city to another. Return the minimum cost required to ensure that every pair of cities is connected by a path of connections.