Skip to content

[robinyoon-dev] WEEK 08 solutions#2554

Merged
robinyoon-dev merged 1 commit intoDaleStudy:mainfrom
robinyoon-dev:main
Apr 27, 2026
Merged

[robinyoon-dev] WEEK 08 solutions#2554
robinyoon-dev merged 1 commit intoDaleStudy:mainfrom
robinyoon-dev:main

Conversation

@robinyoon-dev
Copy link
Copy Markdown
Contributor

@robinyoon-dev robinyoon-dev commented Apr 20, 2026

답안 제출 문제

작성자 체크 리스트

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

검토자 체크 리스트

Important

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

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

@dalestudy
Copy link
Copy Markdown
Contributor

dalestudy Bot commented Apr 20, 2026

📊 robinyoon-dev 님의 학습 현황

이번 주 제출 문제

문제 난이도 유형 분석
reverse-bits Easy ✅ 의도한 유형

누적 학습 요약

  • 풀이한 문제: 24 / 75개
  • 이번 주 유형 일치율: 100% (1문제 중 1문제 일치)

문제 풀이 현황

카테고리 진행도 완료
Bucket Sort ■■■■■■■ 1 / 1 (Medium 1)
Counting ■■■■■■■ 1 / 1 (Medium 1)
Memoization ■■■■■■■ 2 / 2 (Easy 1, Medium 1)
Quickselect ■■■■■■■ 1 / 1 (Medium 1)
Backtracking ■■■■■□□ 2 / 3 (Medium 2)
Recursion ■■■■■□□ 2 / 3 (Easy 2)
Hash Table ■■■■□□□ 9 / 16 (Easy 3, Medium 6)
Prefix Sum ■■■■□□□ 1 / 2 (Medium 1)
Stack ■■■■□□□ 1 / 2 (Easy 1)
Trie ■■■■□□□ 2 / 4 (Medium 2)
String ■■■□□□□ 8 / 19 (Medium 5, Easy 3)
Array ■■■□□□□ 14 / 36 (Easy 3, Medium 11)
Sorting ■■■□□□□ 4 / 11 (Easy 2, Medium 2)
Divide and Conquer ■■□□□□□ 2 / 6 (Easy 1, Medium 1)
Linked List ■■□□□□□ 2 / 6 (Easy 2)
Sliding Window ■■□□□□□ 1 / 3 (Medium 1)
Dynamic Programming ■■□□□□□ 5 / 18 (Easy 2, Medium 3)
Binary Search ■■□□□□□ 1 / 4 (Medium 1)
Greedy ■■□□□□□ 1 / 4 (Medium 1)
Heap (Priority Queue) ■■□□□□□ 1 / 4 (Medium 1)
Union-Find ■■□□□□□ 1 / 4 (Medium 1)
Bit Manipulation ■□□□□□□ 1 / 5 (Easy 1)
Design ■□□□□□□ 1 / 5 (Medium 1)
Math ■□□□□□□ 1 / 5 (Easy 1)
Two Pointers ■□□□□□□ 2 / 10 (Medium 1, Easy 1)
Breadth-First Search ■□□□□□□ 2 / 13 (Medium 1, Easy 1)
Matrix ■□□□□□□ 1 / 7 (Medium 1)
Depth-First Search ■□□□□□□ 2 / 18 (Easy 1, Medium 1)
Binary Tree ■□□□□□□ 1 / 11 (Easy 1)
Tree ■□□□□□□ 1 / 11 (Easy 1)
Binary Search Tree □□□□□□□ 0 / 3 ← 아직 시작 안 함
Combinatorics □□□□□□□ 0 / 1 ← 아직 시작 안 함
Data Stream □□□□□□□ 0 / 1 ← 아직 시작 안 함
Graph Theory □□□□□□□ 0 / 5 ← 아직 시작 안 함
Hash Function □□□□□□□ 0 / 1 ← 아직 시작 안 함
Merge Sort □□□□□□□ 0 / 1 ← 아직 시작 안 함
Simulation □□□□□□□ 0 / 1 ← 아직 시작 안 함
String Matching □□□□□□□ 0 / 1 ← 아직 시작 안 함
Topological Sort □□□□□□□ 0 / 2 ← 아직 시작 안 함

🤖 이 댓글은 GitHub App을 통해 자동으로 작성되었습니다.

🔢 API 사용량 (gpt-4.1-nano)
요청 입력 토큰 출력 토큰 합계 비용
#1 294 34 328 $0.000043

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.

🏷️ 알고리즘 패턴 분석

  • 패턴: Bit Manipulation
  • 설명: 이 코드는 비트 연산을 활용하여 정수의 이진수 비트를 뒤집는 방식으로, 비트 조작 기법이 핵심인 패턴에 속합니다.

@dalestudy
Copy link
Copy Markdown
Contributor

dalestudy Bot commented Apr 20, 2026

📊 시간/공간 복잡도 분석

reverse-bits

복잡도
Time O(1)
Space O(1)

피드백: 이 구현은 고정된 32비트 정수에 대해 일정한 시간과 공간 복잡도를 가지며, 효율적입니다. 비트 연산을 활용하여 역순을 수행하는 방법이 적절합니다.

개선 제안: 현재 구현이 적절해 보입니다.

💡 풀이에 시간/공간 복잡도를 주석으로 남겨보세요!


🤖 이 댓글은 GitHub App을 통해 자동으로 작성되었습니다.

Comment on lines +8 to +9
result = result << 1;
result = result | (n & 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.

result <<= 1;
result |= (n & 1);

축약 연산자를 쓰면 비트 연산 의도가 더 잘보일 수 있을 것 같아요!
한 주 고생많으셨습니다! 👍

@robinyoon-dev robinyoon-dev merged commit 93fee94 into DaleStudy:main Apr 27, 2026
3 checks passed
@github-project-automation github-project-automation Bot moved this from Solving to Completed in 리트코드 스터디 7기 Apr 27, 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.

2 participants