[20251110] PGM / LV2 / 전력망을 둘로 나누기 / 김민진#1366
Merged
ShinHeeEul merged 1 commit intomainfrom Nov 10, 2025
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🧷 문제 링크
전력망을 둘로 나누기
🧭 풀이 시간
30분
👀 체감 난이도
✏️ 문제 설명
트리 형식의 전력망이 있음
전선 하나를 끊을 때 전력망 두 그룹에서 가지는 노드 갯수의 차 중 최솟값
🔍 풀이 방법
어떤 전선을 끊을지 정하고 전선이 끊어진 노드부터 시작해서 자식의 갯수를 세면 됨
⏳ 회고
target 빼도 됨.. 수정 전의 잔해..
약간 구 한컴타자가 아닌 곳에서 타자연습을 할 때와 같은 묘한 불편함이 있음..
프로그래머스에서 왜 이렇게 코드가 안 읽히지 큰일낫다