Skip to content

Conversation

@suyeun84
Copy link
Contributor

@suyeun84 suyeun84 commented Sep 5, 2025

🧷 문제 링크

https://school.programmers.co.kr/learn/courses/30/lessons/42861

🧭 풀이 시간

30분

👀 체감 난이도

✏️ 문제 설명

n개의 섬 사이에 다리 건설하려고 할 때, 최소의 비용으로 모든 섬이 서로 통행 가능하도록 만들 때,
필요한 최소 비용 구하기

🔍 풀이 방법

그냥 구현..
HashSet에 연결되어 있는 섬들의 번호 넣고, cost가 작은 것부터 하나씩 연결했음

⏳ 회고

다익스트라 생각하긴 했는데, 그냥 돌려버림

@suyeun84 suyeun84 self-assigned this Sep 5, 2025
@suyeun84 suyeun84 added the success 👍 해설을 보지 않고 풀었을 때 label Sep 5, 2025
@suyeun84 suyeun84 merged commit 5054eea into main Sep 5, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

success 👍 해설을 보지 않고 풀었을 때

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants