Skip to content

[jylee2033] WEEK 07 solutions#2546

Merged
jylee2033 merged 4 commits intoDaleStudy:mainfrom
jylee2033:main
Apr 19, 2026
Merged

[jylee2033] WEEK 07 solutions#2546
jylee2033 merged 4 commits intoDaleStudy:mainfrom
jylee2033:main

Conversation

@jylee2033
Copy link
Copy Markdown
Contributor

@jylee2033 jylee2033 commented Apr 17, 2026

답안 제출 문제

작성자 체크 리스트

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

검토자 체크 리스트

Important

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

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

@dalestudy
Copy link
Copy Markdown
Contributor

dalestudy bot commented Apr 17, 2026

📊 시간/공간 복잡도 분석

reverse-linked-list

유저 분석 실제 분석 결과
Time O(n) O(n)
Space O(1) O(1)

피드백: 시간과 공간 복잡도 모두 명확하게 주석과 코드에 반영되어 있어 이해가 쉽습니다. 반복적 포인터 역전 방식은 효율적이고 일반적입니다.

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


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

@dalestudy
Copy link
Copy Markdown
Contributor

dalestudy bot commented Apr 17, 2026

📊 jylee2033 님의 학습 현황

이번 주 제출 문제

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

누적 학습 요약

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

문제 풀이 현황

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

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

🔢 API 사용량 (gpt-4.1-nano)
요청 입력 토큰 출력 토큰 합계 비용
#1 392 33 425 $0.000052

@github-actions github-actions bot added the py label Apr 17, 2026
@jylee2033 jylee2033 moved this from Solving to In Review in 리트코드 스터디 7기 Apr 17, 2026
@reeseo3o reeseo3o self-requested a review April 18, 2026 04:52
cur.next = prev
return cur

# Time Complexity: O(n)
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.

수고 많으셨습니다!
시/공간 복잡도도 잘 정리해주셔서 좋네요 😊

while cur is not None: 패턴을 쓰면

  • 빈 리스트 처리용 if head is None 분기 없이도 동작하고
  • 마지막 노드를 따로 처리하지 않아도 돼서

조금 더 읽기 쉬운 코드가 될 것 같습니다~!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

오 감사합니다! 알려주신 대로 다시 풀어보니까 예외 처리도 줄고 훨씬 깔끔해지네요. 팁 감사합니다 😊

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.

🏷️ 알고리즘 패턴 분석

  • 패턴: Reverse Linked List
  • 설명: 이 코드는 연결 리스트의 방향을 뒤집는 문제로, 기존 링크를 역순으로 재구성하는 과정을 통해 해결합니다. 일반적인 패턴인 'Reverse Linked List'에 속하며, 포인터 조작을 통해 리스트를 뒤집습니다.

@jylee2033 jylee2033 merged commit 5c3afaf into DaleStudy:main Apr 19, 2026
1 check passed
@github-project-automation github-project-automation bot moved this from In Review to Completed in 리트코드 스터디 7기 Apr 19, 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