Skip to content

[reeseo3o] WEEK 15 Solutions#2638

Merged
DaleSeo merged 2 commits into
DaleStudy:mainfrom
reeseo3o:main
Jun 15, 2026
Merged

[reeseo3o] WEEK 15 Solutions#2638
DaleSeo merged 2 commits into
DaleStudy:mainfrom
reeseo3o:main

Conversation

@reeseo3o

Copy link
Copy Markdown
Contributor

답안 제출 문제

작성자 체크 리스트

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

검토자 체크 리스트

Important

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

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

@dalestudy

dalestudy Bot commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

📊 reeseo3o 님의 학습 현황

이번 주 제출 문제

문제 난이도 유형 분석
subtree-of-another-tree Easy ✅ 의도한 유형

누적 학습 요약

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

문제 풀이 현황

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

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

🔢 API 사용량 (gpt-4.1-nano)
요청 입력 토큰 출력 토큰 합계 비용
1 356 34 390 $0.000049
2 353 33 386 $0.000049
합계 709 67 776 $0.000098

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 * m)
Space O(h + m)

피드백: 전체 트리의 각 노드에 대해 서브트리 일치 여부를 검사하는데, 각 검사에서 두 트리의 노드 수에 비례하는 시간이 소요됩니다. 따라서 최악의 경우 시간 복잡도는 O(n * m)입니다.

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

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

@DaleSeo

DaleSeo commented Jun 15, 2026

Copy link
Copy Markdown
Member

@DaleStudy 승인

@dalestudy dalestudy Bot left a comment

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.

승인되었습니다! 👍

@DaleSeo DaleSeo merged commit 84fbff4 into DaleStudy:main Jun 15, 2026
1 check passed
@github-project-automation github-project-automation Bot moved this from Solving to Completed in 리트코드 스터디 7기 Jun 15, 2026
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.

2 participants