⭐算法OJ⭐并查集的应用/DFS/BFS:省份数量问题 Number of ProvincesThere are n cities. Some of them are connected, while some are not. If city a is connected directly with city b, and city b is connected directly with city c, then city a is connected indirectly with city c.