Skip to content

Solve(disjoint_set): BOJ 16562 "친구비" 문제풀이#141

Open
longrunpc wants to merge 1 commit into
solvedfrom
boj/16562
Open

Solve(disjoint_set): BOJ 16562 "친구비" 문제풀이#141
longrunpc wants to merge 1 commit into
solvedfrom
boj/16562

Conversation

@longrunpc

Copy link
Copy Markdown
Contributor

📘 문제 정보


✅ 정답(PR)인 경우 작성

1) 최종 풀이 요약

  • 해결 방법 핵심: union-find를 활용하여 친구비가 가장 낮은 친구를 최상위 부모로 두어 해결
  • 사용한 알고리즘/자료구조: 분리집합

2) 시간/공간 복잡도

  • 시간 복잡도: O(N+M)
  • 공간 복잡도: O(N+M)

@longrunpc longrunpc self-assigned this Apr 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant