Skip to content

[chrisjune] week 01 solutions #1708

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

chrisjune
Copy link

@chrisjune chrisjune commented Jul 23, 2025

답안 제출 문제

작성자 체크 리스트

  • Projects의 오른쪽 버튼(▼)을 눌러 확장한 뒤, Week를 현재 주차로 설정해주세요.
  • 문제를 모두 푸시면 프로젝트에서 StatusIn Review로 설정해주세요.
  • 코드 검토자 1분 이상으로부터 승인을 받으셨다면 PR을 병합해주세요.

검토자 체크 리스트

Important

본인 답안 제출 뿐만 아니라 다른 분 PR 하나 이상을 반드시 검토를 해주셔야 합니다!

  • 바로 이전에 올라온 PR에 본인을 코드 리뷰어로 추가해주세요.
  • 본인이 검토해야하는 PR의 답안 코드에 피드백을 주세요.
  • 토요일 전까지 PR을 병합할 수 있도록 승인해주세요.

Copy link
Member

@s0ooo0k s0ooo0k left a comment

Choose a reason for hiding this comment

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

안녕하세요! 다음 PR 제출자가 이전 PR의 리뷰어가 되는 구조라, 제가 @chrisjune 님의 리뷰어가 되는 거 같습니다 :) 확인하시면 수정 부탁드릴게요!

빠르게 문제를 풀어주셨네요, 나머지 문제들도 빠른 시일 내에 리뷰 남겨 드리겠습니다,
파이썬 언어를 안한지가 오래 되어 가물가물하지만, 덕분에 다시 한 번 리마인드 해보겠습니다!

Comment on lines 6 to 9
for i in range(len(nums)):
for j in range(len(nums)):
if i == j:
continue
Copy link
Member

Choose a reason for hiding this comment

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

저도 처음에 이중 for문으로 풀었었는데, 파이썬의 경우 dictionary를 사용하면 시간복잡도를 줄일 수 있는 방법으로도 풀 수 있을 거 같습니다!

Copy link
Author

Choose a reason for hiding this comment

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

리뷰 감사합니다. 의견주신 dictionary로 풀었더니 속도개선이 잘 되었습니다
image

@chrisjune chrisjune removed the request for review from yg-cho July 24, 2025 01:15
@chrisjune chrisjune requested a review from s0ooo0k July 24, 2025 12:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: In Review
Development

Successfully merging this pull request may close these issues.

2 participants