Skip to content

[sangbeenmoon] WEEK 07 solutions#2551

Merged
sangbeenmoon merged 4 commits intoDaleStudy:mainfrom
sangbeenmoon:week7
Apr 21, 2026
Merged

[sangbeenmoon] WEEK 07 solutions#2551
sangbeenmoon merged 4 commits intoDaleStudy:mainfrom
sangbeenmoon:week7

Conversation

@sangbeenmoon
Copy link
Copy Markdown
Contributor

@sangbeenmoon sangbeenmoon commented Apr 18, 2026

답안 제출 문제

작성자 체크 리스트

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

검토자 체크 리스트

Important

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

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

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.

🏷️ 알고리즘 패턴 분석

  • 패턴: Sliding Window, 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(깊이 우선 탐색) 방식을 사용하여 섬의 개수를 셉니다. 방문 체크와 재귀적 탐색이 핵심입니다.

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.

🏷️ 알고리즘 패턴 분석

  • 패턴: Linked List
  • 설명: 이 코드는 연결 리스트를 역순으로 뒤집는 문제로, 리스트 노드의 포인터를 조작하는 방식이 특징입니다. 주어진 패턴 목록에 없지만, 연결 리스트 관련 대표적인 패턴입니다.

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
  • 설명: 이 코드는 행과 열에 0이 있는 위치를 기록하기 위해 해시 맵을 사용하여, 이후에 해당 위치를 0으로 변경하는 방식으로 문제를 해결합니다.

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.

🏷️ 알고리즘 패턴 분석

  • 패턴: Dynamic Programming
  • 설명: 이 코드는 2차원 DP 배열을 이용하여 경로의 수를 계산하는 방식으로, 이전 상태를 기반으로 현재 값을 갱신하는 DP 패턴에 속합니다.

@dalestudy
Copy link
Copy Markdown
Contributor

dalestudy Bot commented Apr 18, 2026

📊 sangbeenmoon 님의 학습 현황

이번 주 제출 문제

문제 난이도 유형 분석
longest-substring-without-repeating-characters Medium ✅ 의도한 유형
number-of-islands Medium ⚠️ 유형 불일치
reverse-linked-list Easy ⚠️ 유형 불일치
set-matrix-zeroes Medium ⚠️ 유형 불일치
unique-paths Medium ✅ 의도한 유형

누적 학습 요약

  • 풀이한 문제: 28 / 75개
  • 이번 주 유형 일치율: 40% (5문제 중 2문제 일치)

문제 풀이 현황

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

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

🔢 API 사용량 (gpt-4.1-nano)
요청 입력 토큰 출력 토큰 합계 비용
#1 1,803 166 1,969 $0.000247

@dalestudy
Copy link
Copy Markdown
Contributor

dalestudy Bot commented Apr 18, 2026

📊 시간/공간 복잡도 분석

longest-substring-without-repeating-characters

유저 분석 실제 분석 결과
Time O(n) O(n)
Space O(min(n, m)) O(min(n, m))

피드백: 이 구현은 슬라이딩 윈도우와 해시맵을 이용하여 중복 문자를 빠르게 찾고 윈도우 크기를 조절하는 효율적인 방법입니다. 시간복잡도와 공간복잡도 모두 적절하게 최적화되어 있습니다.

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

number-of-islands

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

피드백: DFS를 이용한 섬 탐색 방법으로, 모든 셀을 한 번씩 방문하며 섬을 셈하는 방식입니다. 시간과 공간 복잡도 모두 적절하게 구현되어 있습니다.

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

reverse-linked-list

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

피드백: 이 방식은 새 노드를 만들어 역순으로 연결하는 방법으로, 시간복잡도는 선형이고 공간복잡도도 노드 수만큼 필요합니다. 그러나 기존 노드를 재활용하는 방법이 더 공간 효율적일 수 있습니다.

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

set-matrix-zeroes

유저 분석 실제 분석 결과
Time O(m*n) O(m*n)
Space O(m+n) O(m+n)

피드백: 이 방법은 행과 열을 별도 딕셔너리로 기록하여, 이후에 다시 0으로 채우는 방식입니다. 시간복잡도는 이중 루프로 충분히 최적화되어 있으며, 공간도 적절합니다.

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

unique-paths

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

피드백: 이 DP 방식은 각 셀에 도달하는 경로 수를 이전 셀의 값을 이용해 계산하는 표준 방법입니다. 시간과 공간 모두 최적화되어 있습니다.

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


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

@sangbeenmoon sangbeenmoon changed the title Week7 [sangbeenmoon] WEEK 07 solutions Apr 18, 2026
@gyeo-ri gyeo-ri self-requested a review April 18, 2026 14:09
Copy link
Copy Markdown
Contributor

@gyeo-ri gyeo-ri left a comment

Choose a reason for hiding this comment

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

5문제 모두 제출하셨네요! 이번주도 고생 많으셨습니다 ㅎㅎ

@sangbeenmoon sangbeenmoon merged commit ad576e1 into DaleStudy:main Apr 21, 2026
3 checks passed
@github-project-automation github-project-automation Bot moved this from In Review to Completed in 리트코드 스터디 7기 Apr 21, 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