Skip to content

[기재현] 1주차 #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Mar 22, 2025
Merged

[기재현] 1주차 #6

merged 6 commits into from
Mar 22, 2025

Conversation

jaihyunkee
Copy link
Collaborator

No description provided.

Copy link
Collaborator

@vvtkfkddl11 vvtkfkddl11 left a comment

Choose a reason for hiding this comment

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

두 스티커 문제는 combinations을 활용해서 순회 방식이 더 깔끔하고 구조화가 잘 되어있어서 가독성이 좋네요! 바이러스 문제는 저는 dfs로 구현했는데 deque과 defaultdict을 사용해서 dfs로 구현하신 부분도 인상깊습니다.

바이러스.py Outdated
while queue:
node = queue.popleft()
for neighbor in neighbors[node]:
if neighbor not in visited and neighbor not in queue:
Copy link
Collaborator

Choose a reason for hiding this comment

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

neighbor not in queue는 없어도 될 것 같습니다!

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.

2 participants