Skip to content

[hyeri0903] WEEK12 Solutions#2614

Merged
hyeri0903 merged 3 commits into
DaleStudy:mainfrom
hyeri0903:main
May 24, 2026
Merged

[hyeri0903] WEEK12 Solutions#2614
hyeri0903 merged 3 commits into
DaleStudy:mainfrom
hyeri0903:main

Conversation

@hyeri0903
Copy link
Copy Markdown
Contributor

@hyeri0903 hyeri0903 commented May 24, 2026

답안 제출 문제

작성자 체크 리스트

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

검토자 체크 리스트

Important

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

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

@dalestudy
Copy link
Copy Markdown
Contributor

dalestudy Bot commented May 24, 2026

📊 hyeri0903 님의 학습 현황

이번 주 제출 문제

문제 난이도 유형 분석
non-overlapping-intervals Medium ✅ 의도한 유형
remove-nth-node-from-end-of-list Medium ✅ 의도한 유형
same-tree Easy ✅ 의도한 유형

누적 학습 요약

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

문제 풀이 현황

카테고리 진행도 완료
Array ■■■■■■■ 10 / 10 (Medium 7, Easy 3)
Dynamic Programming ■■■■■■□ 10 / 11 (Easy 1, Medium 9)
String ■■■■■■□ 9 / 10 (Medium 5, Hard 1, Easy 3)
Linked List ■■■■■■□ 5 / 6 (Easy 3, Hard 1, Medium 1)
Binary ■■■■■■□ 4 / 5 (Easy 3, Medium 1)
Graph ■■■■■□□ 6 / 8 (Medium 6)
Matrix ■■■■■□□ 3 / 4 (Medium 3)
Heap ■■■■■□□ 2 / 3 (Hard 1, Medium 1)
Tree ■■■□□□□ 6 / 14 (Hard 1, Medium 3, Easy 2)
Interval ■□□□□□□ 1 / 5 (Medium 1)

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

🔢 API 사용량 (gpt-4.1-nano)
요청 입력 토큰 출력 토큰 합계 비용
1 503 30 533 $0.000062
2 1,039 65 1,104 $0.000130
3 1,496 101 1,597 $0.000190
합계 3,038 196 3,234 $0.000382

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.

🏷️ 알고리즘 패턴 분석

  • 패턴: Greedy
  • 설명: 이 코드는 겹치지 않는 구간을 찾기 위해 끝나는 시간 기준 정렬 후 선택하는 그리디 전략을 사용합니다. 최소 제거 개수를 구하는 문제에 적합한 패턴입니다.

📊 시간/공간 복잡도 분석

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

피드백: 배열 정렬 후 한 번 순회하며 겹침 여부를 체크하는 방식으로, 정렬이 시간 복잡도에 가장 큰 영향을 미친다. 정렬 후 순회는 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.

🏷️ 알고리즘 패턴 분석

  • 패턴: Two Pointers
  • 설명: 이 코드는 fast와 slow 두 포인터를 이용하여 리스트의 뒤에서 n번째 노드를 찾고 제거하는 방식으로, 두 포인터 패턴에 속합니다.

📊 시간/공간 복잡도 분석

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

피드백: 빠른 포인터를 n칸 이동시킨 후, 느린 포인터와 함께 끝까지 이동하며 제거 대상 노드 위치를 찾는다. 한 번의 순회로 해결 가능하다.

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

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

Comment thread same-tree/hyeri0903.java
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.

🏷️ 알고리즘 패턴 분석

  • 패턴: DFS
  • 설명: 이 코드는 재귀를 이용한 깊이 우선 탐색(DFS) 방식으로 두 트리의 구조와 값을 비교하여 동일한지 판단합니다.

📊 시간/공간 복잡도 분석

복잡도
Time O(n)
Space O(h)

피드백: 트리의 모든 노드를 한 번씩 방문하는 재귀 방식으로, 트리의 높이만큼 호출 스택이 쌓인다. 구조와 값 비교를 동시에 수행한다.

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

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

@hyeri0903 hyeri0903 moved this from Solving to In Review in 리트코드 스터디 7기 May 24, 2026
@hyeri0903
Copy link
Copy Markdown
Contributor Author

@DaleStudy 승인

Copy link
Copy Markdown
Contributor

@dalestudy dalestudy Bot left a comment

Choose a reason for hiding this comment

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

승인되었습니다! 👍

@hyeri0903 hyeri0903 merged commit 1870c7b into DaleStudy:main May 24, 2026
1 check passed
@github-project-automation github-project-automation Bot moved this from In Review to Completed in 리트코드 스터디 7기 May 24, 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.

1 participant