Skip to content

[sadie100] WEEK7 Solutions#2538

Open
sadie100 wants to merge 5 commits intoDaleStudy:mainfrom
sadie100:main
Open

[sadie100] WEEK7 Solutions#2538
sadie100 wants to merge 5 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 ✅ 의도한 유형

누적 학습 요약

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

문제 풀이 현황

카테고리 진행도 완료
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,171 134 2,305 $0.000271

@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) O(L)
Space O(L) O(L)

피드백: Trie 구조를 활용하여 검색 효율성을 높인 점이 적절합니다. 특히 '.' 문자 처리 시 재귀 호출로 모든 경우를 탐색하는 방식이 적합합니다.

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

longest-substring-without-repeating-characters

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

피드백: 슬라이딩 윈도우와 Map을 활용하여 효율적으로 중복 문자를 처리하는 방식이 적절합니다.

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

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)

피드백: 단일 포인터와 반복문을 활용한 역순 뒤집기 방법이 적절하며, 공간 복잡도를 최소화하는 점이 좋습니다.

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


🤖 이 댓글은 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 구조를 활용하여 문자열 저장 및 검색을 효율화하며, '.' 와일드카드 검색 시 재귀적 백트래킹이 사용됩니다.

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 또는 Sliding Window와 유사하게 두 포인터를 이용합니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Solving

Development

Successfully merging this pull request may close these issues.

2 participants