Skip to content

[ys-han00] WEEK 14 solutions#2331

Merged
TonyKim9401 merged 1 commit intoDaleStudy:mainfrom
ys-han00:main
Feb 14, 2026
Merged

[ys-han00] WEEK 14 solutions#2331
TonyKim9401 merged 1 commit intoDaleStudy:mainfrom
ys-han00:main

Conversation

@ys-han00
Copy link
Contributor

@ys-han00 ys-han00 commented Feb 13, 2026

답안 제출 문제

작성자 체크 리스트

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

검토자 체크 리스트

Important

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

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

@github-actions github-actions bot added the c++ label Feb 13, 2026
@ys-han00 ys-han00 moved this from Solving to In Review in 리트코드 스터디 6기 Feb 13, 2026
@ys-han00 ys-han00 changed the title [ys-han00] WEEK 13 solutions [ys-han00] WEEK 14 solutions Feb 13, 2026
Copy link
Contributor

@TonyKim9401 TonyKim9401 left a comment

Choose a reason for hiding this comment

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

14주차 문제 풀이 고생하셨습니다.
지난주 문제까지 같이 올려주셨는데 Hard 문제까지 잘 풀이해주셔서 정말 대단하신것 같습니다.
길었던 15주간의 여정도 다음주며 끝이네요. 마지막까지 파이팅입니다!

@rivkode rivkode self-requested a review February 14, 2026 00:25
Copy link
Member

@rivkode rivkode left a comment

Choose a reason for hiding this comment

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

수고하셨습니다!

vector<int> countBits(int n) {
vector<int> dp(n + 1, 0);
for(int i = 1; i <= n; i++)
dp[i] = dp[(i >> 1)] + (i & 1);
Copy link
Member

Choose a reason for hiding this comment

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

이 문제에서 dp 를 떠올리고 + 비트 연산을 사용하신게 대단하신 것 같습니다 !

@TonyKim9401 TonyKim9401 merged commit 3a3a7a2 into DaleStudy:main Feb 14, 2026
3 checks passed
@github-project-automation github-project-automation bot moved this from In Review to Completed in 리트코드 스터디 6기 Feb 14, 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.

3 participants