Skip to content

[wisdom08] Week1 #1132

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

Closed
wants to merge 5 commits into from
Closed

[wisdom08] Week1 #1132

wants to merge 5 commits into from

Conversation

wisdom08
Copy link
Member

@wisdom08 wisdom08 commented Mar 30, 2025

답안 제출 문제

작성자 체크 리스트

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

검토자 체크 리스트

Important

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

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

@wisdom08 wisdom08 added the py label Mar 30, 2025
@wisdom08 wisdom08 self-assigned this Mar 30, 2025
@wisdom08 wisdom08 moved this from Solving to In Progress in 리트코드 스터디 4기 Mar 30, 2025
@wisdom08 wisdom08 moved this from In Progress to Solving in 리트코드 스터디 4기 Mar 30, 2025
@JustHm JustHm self-requested a review March 30, 2025 11:17
dict = {}
for i, v in enumerate(nums):
diff = target - v
if diff in dict:
Copy link
Contributor

Choose a reason for hiding this comment

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

여기 if 구문이 dict를 순회하면서 맞는키가 있는지 보는건가로 알고 있었는데 키가 존재하는지만 확인하는 O(1) 메서드였네요..
코드 보면서 의아했는데 정말 깔끔하게 푸신거 보고 하나 배웠습니다!

@github-project-automation github-project-automation bot moved this from Solving to Completed in 리트코드 스터디 4기 Apr 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Completed
Development

Successfully merging this pull request may close these issues.

3 participants