We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a4bb5e9 commit 09740fdCopy full SHA for 09740fd
10/1.py
@@ -16,7 +16,7 @@ def union_parent(parent, a, b):
16
17
# 노드의 개수와 간선(Union 연산)의 개수 입력 받기
18
v, e = map(int, input().split())
19
-parent = {}
+parent = [0] * (v + 1) # 부모 테이블 초기화하기
20
21
# 부모 테이블상에서, 부모를 자기 자신으로 초기화
22
for i in range(1, v + 1):
0 commit comments