Skip to content

[hwi-middle] WEEK 07 solutions#2549

Merged
hwi-middle merged 1 commit intoDaleStudy:mainfrom
hwi-middle:main
Apr 18, 2026
Merged

[hwi-middle] WEEK 07 solutions#2549
hwi-middle merged 1 commit intoDaleStudy:mainfrom
hwi-middle:main

Conversation

@hwi-middle
Copy link
Copy Markdown
Contributor

@hwi-middle hwi-middle 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
  • 설명: 이 코드는 연속된 부분 문자열을 찾기 위해 윈도우 범위를 조절하며 탐색하는 슬라이딩 윈도우 패턴을 사용합니다. 중복 문자 제거와 최장 길이 계산에 적합한 기법입니다.

@dalestudy
Copy link
Copy Markdown
Contributor

dalestudy bot commented Apr 18, 2026

📊 hwi-middle 님의 학습 현황

이번 주 제출 문제

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

누적 학습 요약

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

문제 풀이 현황

카테고리 진행도 완료
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 ■■■■□□□ 19 / 36 (Medium 16, Easy 3)
String ■■■■□□□ 10 / 19 (Medium 7, 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)
Stack ■■■■□□□ 1 / 2 (Easy 1)
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)
Two Pointers ■■□□□□□ 3 / 10 (Medium 2, Easy 1)
Matrix ■■□□□□□ 2 / 7 (Medium 2)
Greedy ■■□□□□□ 1 / 4 (Medium 1)
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)
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 ← 아직 시작 안 함
Hash Function □□□□□□□ 0 / 1 ← 아직 시작 안 함
Merge Sort □□□□□□□ 0 / 1 ← 아직 시작 안 함
Sliding Window □□□□□□□ 0 / 3 ← 아직 시작 안 함
String Matching □□□□□□□ 0 / 1 ← 아직 시작 안 함
Topological Sort □□□□□□□ 0 / 2 ← 아직 시작 안 함

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

🔢 API 사용량 (gpt-4.1-nano)
요청 입력 토큰 출력 토큰 합계 비용
#1 2,646 173 2,819 $0.000334

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.

🏷️ 알고리즘 패턴 분석

  • 패턴: BFS
  • 설명: 이 코드는 BFS(너비 우선 탐색)를 활용하여 섬의 연결된 영역을 탐색하고 방문 여부를 체크합니다. 큐를 이용한 탐색 방식이 핵심입니다.

@github-actions github-actions bot added the c++ label Apr 18, 2026
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
  • 설명: 이 코드는 두 포인터(prev, cur)를 활용하여 링크드 리스트를 역순으로 뒤집는 과정에서 포인터를 이동하며 노드들을 재연결하는 방식으로 동작합니다.

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, Hash Map / Hash Set
  • 설명: 두 번째 솔루션은 행과 열의 상태를 첫 번째 요소를 활용하여 표시하는데, 이는 해시 맵 또는 배열을 이용한 마킹 기법과 유사하며, 인덱스 활용이 특징입니다.

@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))

피드백: 이 구현은 슬라이딩 윈도우와 해시맵을 이용하여 중복 문자를 효율적으로 처리하는 방식으로, 시간복잡도 O(n)과 공간복잡도 O(min(n, m))이 적절히 반영되어 있습니다. 주석도 명확합니다.

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

number-of-islands

유저 분석 실제 분석 결과
Time O(r * c) O(r * c)
Space O(min(r, c)) O(min(r, c))

피드백: 이 BFS 기반 풀이로 섬의 개수를 효율적으로 계산하며, 시간복잡도 O(r*c)와 공간복잡도 O(min(r, c))가 적절히 반영되어 있습니다. 주석도 명확합니다.

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

reverse-linked-list

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

피드백: 이 반복 구조를 이용한 역순 알고리즘은 시간복잡도 O(n)과 공간복잡도 O(1)로 효율적입니다. 주석도 명확합니다.

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

set-matrix-zeroes

유저 분석 실제 분석 결과
Time O(r * c) O(r * c)
Space O(r * c) O(r * c)

피드백: 이 두 가지 방법 모두 시간복잡도 O(rc)와 공간복잡도 O(rc)로 적절하며, 두 번째 방법은 공간 최적화에 유리합니다. 주석도 상세합니다.

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

unique-paths

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

피드백: 이 조합 계산 방식은 시간복잡도 O(k)와 공간복잡도 O(1)로 효율적입니다. 주석도 명확하게 핵심 아이디어를 설명하고 있습니다.

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


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

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.

🏷️ 알고리즘 패턴 분석

  • 패턴: Math
  • 설명: 이 코드는 조합 계산을 통해 경로의 수를 구하는 수학적 접근을 사용하며, 특정 알고리즘 패턴에 속하지 않습니다. 일반적인 패턴 목록에는 포함되지 않는 수학적 방법입니다.

@ohkingtaek ohkingtaek self-requested a review April 18, 2026 10:09
Copy link
Copy Markdown
Contributor

@ohkingtaek ohkingtaek left a comment

Choose a reason for hiding this comment

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

unique paths 문제 풀어내는 인사이트 좋은거 같습니다. 한 수 배우겠습니다
문제 푸시느라 고생하셨습니다!

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