Skip to content

[ohkingtaek] Week 03 solutions#2461

Merged
SamTheKorean merged 4 commits intoDaleStudy:mainfrom
ohkingtaek:main
Mar 23, 2026
Merged

[ohkingtaek] Week 03 solutions#2461
SamTheKorean merged 4 commits intoDaleStudy:mainfrom
ohkingtaek:main

Conversation

@ohkingtaek
Copy link
Copy Markdown
Contributor

답안 제출 문제

작성자 체크 리스트

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

검토자 체크 리스트

Important

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

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

Fix missing newline at end of file.
Copy link
Copy Markdown
Contributor

@kangdaia kangdaia left a comment

Choose a reason for hiding this comment

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

수고하셨습니다!
코멘트로 시간복잡도와 공간 복잡도 써주신 것도 좋아보여요. 화이팅입니다!

if total > target:
return

for i in range(start, len(candidates)):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

재귀를 활용해 for loop를 타지 않고 할 수 있는 방법이 있지 않을까 해요!

- 공간복잡도: O(n)
문자열을 이진수로 변환하고, 1의 개수를 세기
"""
return Counter(bin(n)[2:])["1"]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

비트 연산을 사용해보시는것도 좋을 것 같아요

for i in s.lower():
if i.isalnum():
a += i
for i, j in zip(a[:len(a) // 2], a[len(a):(len(a) // 2 - 1):-1]):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

한줄로 쓸 수 있다니, 신기하네요 ㅎㅎ

@yihyun-kim1 yihyun-kim1 self-requested a review March 22, 2026 03:30
Copy link
Copy Markdown
Contributor

@yihyun-kim1 yihyun-kim1 left a comment

Choose a reason for hiding this comment

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

고생하셨습니다!

문제 해결 과정을 적어주셔서 좋았어요 🙌🏻

@SamTheKorean SamTheKorean merged commit 28bf5d3 into DaleStudy:main Mar 23, 2026
1 check passed
@github-project-automation github-project-automation bot moved this from In Review to Completed in 리트코드 스터디 7기 Mar 23, 2026
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.

4 participants