Skip to content

Conversation

imsosleepy
Copy link
Contributor

답안 제출 문제

체크 리스트

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

@imsosleepy imsosleepy requested a review from dusunax January 30, 2025 13:23
@imsosleepy imsosleepy self-assigned this Jan 30, 2025
@imsosleepy imsosleepy requested a review from a team as a code owner January 30, 2025 13:23
@imsosleepy imsosleepy changed the title feat : week 8 [Ackku] week 8 Jan 30, 2025
Copy link
Contributor

@obzva obzva left a comment

Choose a reason for hiding this comment

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

한 주 수고하셨습니다! 남은 절반도 화이팅입니다 :)

// 가장 먼저 떠오른 방법이지만 권장되지 않는 방법일 것 같음
// 변환된 이진 문자열을 치환하는 방식은 O(K + logN)이다.
class Solution {
public int hammingWeight(int n) {
Copy link
Contributor

Choose a reason for hiding this comment

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

이런걸 hammingWeight라고 부르는 군요 ㅎㅎ 잘 배워갑니다

// 이런식으로도 풀리지만 이런 결과는 원하지 않을지 도..
class Solution {
public int getSum(int a, int b) {
return Math.addExact(a, b);
Copy link
Contributor

Choose a reason for hiding this comment

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

@TonyKim9401 TonyKim9401 merged commit fd46505 into DaleStudy:main Feb 2, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Status: Completed
Development

Successfully merging this pull request may close these issues.

3 participants