Skip to content

[hyejj19] WEEK 07 Solutions#2541

Merged
hyejj19 merged 3 commits intoDaleStudy:mainfrom
hyejj19:main
Apr 18, 2026
Merged

[hyejj19] WEEK 07 Solutions#2541
hyejj19 merged 3 commits intoDaleStudy:mainfrom
hyejj19:main

Conversation

@hyejj19
Copy link
Copy Markdown
Contributor

@hyejj19 hyejj19 commented Apr 17, 2026

답안 제출 문제

작성자 체크 리스트

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

검토자 체크 리스트

Important

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

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

@github-actions github-actions bot added the ts label Apr 17, 2026
@hyejj19 hyejj19 marked this pull request as ready for review April 17, 2026 06:00
@liza0525 liza0525 self-requested a review April 17, 2026 06:05
Copy link
Copy Markdown
Contributor

@liza0525 liza0525 left a comment

Choose a reason for hiding this comment

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

깔끔한 풀이에 주석까지 달아주셔서 편히 보았습니다! 이번주도 고생하셨습니다👍

한가지 마이너한 의견을 드리자면 longest substring without repeating characters 문제에는 TC, SC가 누락이 되어 있어, 적어주시면 좋을 것 같습니다!
(다른 문제는 적어주신 걸로 확인하였습니다 😊)

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
  • 설명: 이 코드는 연속된 문자열 구간을 탐색하며 중복을 체크하기 위해 슬라이딩 윈도우와 해시 맵을 사용합니다. 윈도우의 좌우 포인터를 조절하며 최장 길이를 찾는 방식입니다.

@dalestudy
Copy link
Copy Markdown
Contributor

dalestudy bot commented Apr 18, 2026

📊 hyejj19 님의 학습 현황

이번 주 제출 문제

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

누적 학습 요약

  • 풀이한 문제: 10 / 75개
  • 이번 주 유형 일치율: 67% (3문제 중 2문제 일치)

문제 풀이 현황

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

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

🔢 API 사용량 (gpt-4.1-nano)
요청 입력 토큰 출력 토큰 합계 비용
#1 1,208 106 1,314 $0.000163

@dalestudy
Copy link
Copy Markdown
Contributor

dalestudy bot commented Apr 18, 2026

📊 시간/공간 복잡도 분석

longest-substring-without-repeating-characters

복잡도
Time O(n)
Space O(min(n, m)) (m은 문자 집합 크기)

피드백: 이 구현은 슬라이딩 윈도우와 Map을 사용하여 중복 문자를 효율적으로 처리하는 방식입니다. 시간 복잡도는 O(n)으로 적절하며, 공간 복잡도도 문자 집합 크기에 따라 최적화되어 있습니다.

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

💡 풀이에 시간/공간 복잡도를 주석으로 남겨보세요!

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(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.

🏷️ 알고리즘 패턴 분석

  • 패턴: 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.

🏷️ 알고리즘 패턴 분석

  • 패턴: Two Pointers
  • 설명: 이 코드는 두 포인터(prev, cur)를 활용하여 연결 리스트를 역순으로 뒤집는 방식으로, 포인터 이동을 통해 리스트를 순차적으로 처리하는 Two Pointers 패턴에 속합니다.

@hyejj19 hyejj19 moved this from Solving to In Review in 리트코드 스터디 7기 Apr 18, 2026
@hyejj19 hyejj19 merged commit 46d79ad into DaleStudy:main Apr 18, 2026
1 check 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