We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6d6025 commit 753b335Copy full SHA for 753b335
1 file changed
프로그래머스/2/86971. 전력망을 둘로 나누기/전력망을 둘로 나누기.py
@@ -1,4 +1,7 @@
1
'''
2
+PCCP 대비 문제 풀이
3
+ver. 2025.05.24
4
+
5
트리 -> 그래프처럼 생각하기
6
-> 가중치가 모두 같음 -> 끝어진 기준에서 bfs 각각 돌려서 차이 구하기
7
-> 전부 해보면 답이겠지
@@ -44,4 +47,4 @@ def bfs(start):
44
47
tree[src].append(dest)
45
48
tree[dest].append(src)
46
49
- return answer
50
+ return answer
0 commit comments