Skip to content

[sadie100] WEEK7 Solutions#2538

Merged
sadie100 merged 6 commits intoDaleStudy:mainfrom
sadie100:main
Apr 19, 2026
Merged

[sadie100] WEEK7 Solutions#2538
sadie100 merged 6 commits intoDaleStudy:mainfrom
sadie100:main

Conversation

@sadie100
Copy link
Copy Markdown
Contributor

@sadie100 sadie100 commented Apr 16, 2026

답안 제출 문제

작성자 체크 리스트

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

검토자 체크 리스트

Important

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

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

@dalestudy
Copy link
Copy Markdown
Contributor

dalestudy bot commented Apr 16, 2026

📊 sadie100 님의 학습 현황

이번 주 제출 문제

문제 난이도 유형 분석
design-add-and-search-words-data-structure Medium ✅ 의도한 유형
longest-substring-without-repeating-characters Medium ✅ 의도한 유형
number-of-islands Medium ✅ 의도한 유형
reverse-linked-list Easy ✅ 의도한 유형
unique-paths Medium ✅ 의도한 유형

누적 학습 요약

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

문제 풀이 현황

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

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

🔢 API 사용량 (gpt-4.1-nano)
요청 입력 토큰 출력 토큰 합계 비용
#1 2,578 165 2,743 $0.000324

@hyeri0903 hyeri0903 self-requested a review April 16, 2026 14:35
Copy link
Copy Markdown
Contributor

@hyeri0903 hyeri0903 left a comment

Choose a reason for hiding this comment

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

고생하셨습니다!

@dalestudy
Copy link
Copy Markdown
Contributor

dalestudy bot commented Apr 19, 2026

📊 시간/공간 복잡도 분석

design-add-and-search-words-data-structure

유저 분석 실제 분석 결과
Time O(L) (L은 단어 길이) O(L) (단어 길이만큼 순회)
Space O(L) (최악의 경우 트라이 노드 수) O(L) (트라이 노드 생성 최대 L개)

피드백: Trie 구조를 이용하여 검색 효율을 높인 점이 적절합니다. 재귀 호출과 .문자 처리 방식이 적절하며, 시간복잡도도 기대 수준입니다.

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

longest-substring-without-repeating-characters

유저 분석 실제 분석 결과
Time O(N) O(N) (문자별 위치 기록으로 한 번만 순회)
Space O(N) O(N) (문자 위치 저장 맵)

피드백: 슬라이딩 윈도우와 맵을 활용한 최적의 방법으로, 시간복잡도도 기대 수준입니다. 효율적 구현입니다.

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

number-of-islands

유저 분석 실제 분석 결과
Time O(M*N) O(M*N) (모든 셀 방문)
Space O(M*N) O(M*N) (방문 기록 및 재귀 호출 스택)

피드백: DFS를 활용하여 섬을 탐색하는 방식이 적절하며, 시간복잡도도 기대 수준입니다. 공간복잡도도 적절합니다.

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

reverse-linked-list

유저 분석 실제 분석 결과
Time O(N) O(N) (리스트 노드 한 번 순회)
Space O(1) O(1) (포인터 변수만 사용)

피드백: 단일 포인터를 이용한 역순 리스트 구현이 적절하며, 시간복잡도도 기대 수준입니다. 공간복잡도도 최적입니다.

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

unique-paths

유저 분석 실제 분석 결과
Time O(m*n) O(m*n) (이중 루프로 모든 셀 계산)
Space O(m*n) O(m*n) (DP 배열 저장)

피드백: DP를 활용하여 최적의 경로 수 계산 방법이 적절하며, 시간복잡도도 기대 수준입니다.

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


🤖 이 댓글은 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.

🏷️ 알고리즘 패턴 분석

  • 패턴: Trie, Backtracking
  • 설명: Trie 구조를 활용하여 문자열을 저장하고 검색하며, '.' 와일드카드 처리 시 재귀적 탐색(Backtracking)을 사용합니다. 효율적인 문자열 검색에 적합한 패턴입니다.

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를 사용하여 방문처리하며, 연결된 '1'들을 찾는 데 적합한 패턴입니다.

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.

🏷️ 알고리즘 패턴 분석

  • 패턴: Reverse Linked List
  • 설명: 이 코드는 단일 연결 리스트를 역순으로 뒤집는 문제로, 포인터를 이용한 순회와 역전 작업을 수행합니다. 일반적인 패턴인 Two Pointers 또는 Iterative Traversal에 해당합니다.

Comment thread unique-paths/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.

🏷️ 알고리즘 패턴 분석

  • 패턴: Dynamic Programming
  • 설명: 이 코드는 2차원 dp 배열을 이용하여 각 위치까지의 경로 수를 계산하는 방식으로, 하위 문제 해결 후 결과를 누적하는 DP 패턴에 속합니다.

@sadie100 sadie100 merged commit 0d7115a into DaleStudy:main Apr 19, 2026
1 check passed
@github-project-automation github-project-automation bot moved this from Solving to Completed in 리트코드 스터디 7기 Apr 19, 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