Skip to content

[hypoxisaurea] Week 1 Solutions #1722

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 6 commits into
base: main
Choose a base branch
from

Conversation

hypoxisaurea
Copy link

@hypoxisaurea hypoxisaurea commented Jul 26, 2025

답안 제출 문제

작성자 체크 리스트

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

검토자 체크 리스트

Important

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

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

@github-actions github-actions bot added the py label Jul 26, 2025
@hypoxisaurea hypoxisaurea requested review from chordpli and removed request for chordpli July 26, 2025 02:54
@hypoxisaurea hypoxisaurea moved this from Solving to In Review in 리트코드 스터디 5기 Jul 26, 2025
@hyogshin hyogshin self-requested a review July 26, 2025 04:02

lookup[num] = i

raise ValueError('No answer')
Copy link
Contributor

Choose a reason for hiding this comment

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

파이썬으로 알고리즘 풀면서 raise 키워드 사용한 error 처리는 해본 적이 없네요. 좋은 코드 배워갑니다!

for num in nums:
if num in num_set:
return True
else:
Copy link
Contributor

Choose a reason for hiding this comment

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

else를 사용하지 않고 바로 num_set.add(num)을 작성해도 좋을 것 같습니다.

@hyogshin
Copy link
Contributor

hyogshin commented Jul 26, 2025

한 주간 고생하셨습니다.

@hyogshin hyogshin closed this Jul 26, 2025
@hyogshin hyogshin reopened this Jul 26, 2025
Copy link
Contributor

@printjin-gmailcom printjin-gmailcom left a comment

Choose a reason for hiding this comment

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

수고하셨습니다 :)

if len(result) == k:
return result

return result
Copy link
Contributor

Choose a reason for hiding this comment

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

세개의 모든 파일 린트에러로 VS 사용시는 'VSCode 설정 : "files.insertFinalNewline": true" 으로 해결 혹은 각 파일에 한줄씩 빈 줄을 추가하여 에러 해결하고 머지 해주시길 바랍니다.

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.

3 participants