Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions yongjun-0903/네트워크.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
def solution(n, computers):
network = 0
Copy link

Copilot AI Apr 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The variable 'network' is declared but never used in the current implementation. Consider removing it or integrating it into the network count logic.

Copilot uses AI. Check for mistakes.
graph = {}
for i in range(n):
if i not in graph:
graph[i] = []
for j in range(n):
if i != j and computers[i][j] == 1:
graph[i].append(j)
print(graph)

visited = [False for _ in range(n)]
print(visited)
Loading