[jylee2033] WEEK 07 solutions#2546
Merged
jylee2033 merged 4 commits intoDaleStudy:mainfrom Apr 19, 2026
Merged
Conversation
Contributor
📊 시간/공간 복잡도 분석reverse-linked-list
피드백: 시간과 공간 복잡도 모두 명확하게 주석과 코드에 반영되어 있어 이해가 쉽습니다. 반복적 포인터 역전 방식은 효율적이고 일반적입니다. 개선 제안: 현재 구현이 적절해 보입니다. 🤖 이 댓글은 GitHub App을 통해 자동으로 작성되었습니다. |
Contributor
📊 jylee2033 님의 학습 현황이번 주 제출 문제
누적 학습 요약
문제 풀이 현황
🤖 이 댓글은 GitHub App을 통해 자동으로 작성되었습니다. 🔢 API 사용량 (gpt-4.1-nano)
|
reeseo3o
approved these changes
Apr 18, 2026
| cur.next = prev | ||
| return cur | ||
|
|
||
| # Time Complexity: O(n) |
Contributor
There was a problem hiding this comment.
수고 많으셨습니다!
시/공간 복잡도도 잘 정리해주셔서 좋네요 😊
while cur is not None: 패턴을 쓰면
- 빈 리스트 처리용
if head is None분기 없이도 동작하고 - 마지막 노드를 따로 처리하지 않아도 돼서
조금 더 읽기 쉬운 코드가 될 것 같습니다~!
Contributor
Author
There was a problem hiding this comment.
오 감사합니다! 알려주신 대로 다시 풀어보니까 예외 처리도 줄고 훨씬 깔끔해지네요. 팁 감사합니다 😊
Contributor
There was a problem hiding this comment.
🏷️ 알고리즘 패턴 분석
- 패턴: Reverse Linked List
- 설명: 이 코드는 연결 리스트의 방향을 뒤집는 문제로, 기존 링크를 역순으로 재구성하는 과정을 통해 해결합니다. 일반적인 패턴인 'Reverse Linked List'에 속하며, 포인터 조작을 통해 리스트를 뒤집습니다.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
답안 제출 문제
작성자 체크 리스트
In Review로 설정해주세요.검토자 체크 리스트
Important
본인 답안 제출 뿐만 아니라 다른 분 PR 하나 이상을 반드시 검토를 해주셔야 합니다!