Skip to content

[sadie100] Week 09 Solutions#2576

Merged
SamTheKorean merged 2 commits intoDaleStudy:mainfrom
sadie100:main
May 3, 2026
Merged

[sadie100] Week 09 Solutions#2576
SamTheKorean merged 2 commits intoDaleStudy:mainfrom
sadie100:main

Conversation

@sadie100
Copy link
Copy Markdown
Contributor

@sadie100 sadie100 commented Apr 29, 2026

답안 제출 문제

작성자 체크 리스트

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

검토자 체크 리스트

Important

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

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

@dalestudy
Copy link
Copy Markdown
Contributor

dalestudy Bot commented Apr 29, 2026

📊 시간/공간 복잡도 분석

linked-list-cycle

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

피드백: 사용자가 제공한 주석에 따르면 시간복잡도는 O(N), 공간복잡도는 O(N)으로 명시되어 있습니다. 코드의 탐색 과정이 리스트의 노드 수에 비례하므로, 실제 시간/공간 복잡도와 일치합니다. 주석 내용이 정확하며, 코드와 일치합니다.

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

pacific-atlantic-water-flow

유저 분석 실제 분석 결과
Time O(M*N) O(M*N)
Space O(M*N) O(M*N)

피드백: 주석에 명시된 시간복잡도는 O(MN), 공간복잡도도 O(MN)으로, 전체 배열 크기와 비례하는 DFS 탐색 과정과 배열 저장이 반영된 내용입니다. 주석 내용과 코드의 실제 수행 시간/공간이 일치하며, 명확하게 표현되어 있습니다.

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


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

@dalestudy
Copy link
Copy Markdown
Contributor

dalestudy Bot commented Apr 29, 2026

📊 sadie100 님의 학습 현황

이번 주 제출 문제

문제 난이도 유형 분석
linked-list-cycle Easy ⚠️ 유형 불일치
pacific-atlantic-water-flow Medium ✅ 의도한 유형

누적 학습 요약

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

문제 풀이 현황

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

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

🔢 API 사용량 (gpt-4.1-nano)
요청 입력 토큰 출력 토큰 합계 비용
1 427 38 465 $0.000058
2 1,351 73 1,424 $0.000164
합계 1,778 111 1,889 $0.000222

@github-actions github-actions Bot added the ts label Apr 29, 2026
Copy link
Copy Markdown
Member

@DaleSeo DaleSeo left a comment

Choose a reason for hiding this comment

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

풀이가 깔끔해서 사소한 코멘트 하나 남깁니다. 수고하셨습니다!

Comment thread linked-list-cycle/sadie100.ts
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.

🏷️ 알고리즘 패턴 분석

  • 패턴: Hash Map / Hash Set
  • 설명: 이 코드는 노드를 저장하는 Map을 이용하여 이미 방문한 노드를 체크하는 방식으로 순환 여부를 판단합니다. 따라서 Hash Map / Hash Set 패턴에 속합니다.

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 방식을 사용하여 문제를 해결합니다. 높이 조건에 따라 탐색을 제한하며, 연결된 영역을 찾는 데 적합합니다.

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

3 participants