Skip to content

[hyeri0903] WEEK7 Solutions#2539

Merged
hyeri0903 merged 6 commits intoDaleStudy:mainfrom
hyeri0903:main
Apr 18, 2026
Merged

[hyeri0903] WEEK7 Solutions#2539
hyeri0903 merged 6 commits intoDaleStudy:mainfrom
hyeri0903:main

Conversation

@hyeri0903
Copy link
Copy Markdown
Contributor

@hyeri0903 hyeri0903 commented Apr 16, 2026

답안 제출 문제

이전 WEEK6 PR에 WEEK7 문제풀었던 일부가 이미 머지되어 다시 올립니다~!

작성자 체크 리스트

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

검토자 체크 리스트

Important

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

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

@hyeri0903 hyeri0903 added java and removed py labels Apr 16, 2026
@kangdaia kangdaia self-requested a review April 16, 2026 17:39
@dalestudy
Copy link
Copy Markdown
Contributor

dalestudy bot commented Apr 18, 2026

📊 hyeri0903 님의 학습 현황

이번 주 제출 문제

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

누적 학습 요약

  • 풀이한 문제: 33 / 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)
Recursion ■■■■■□□ 2 / 3 (Easy 2)
Design ■■■■□□□ 3 / 5 (Medium 3)
String ■■■■□□□ 11 / 19 (Medium 8, Easy 3)
Hash Table ■■■■□□□ 9 / 16 (Easy 3, Medium 6)
Array ■■■■□□□ 20 / 36 (Medium 17, Easy 3)
Binary Search ■■■■□□□ 2 / 4 (Medium 2)
Divide and Conquer ■■■■□□□ 3 / 6 (Medium 2, Easy 1)
Prefix Sum ■■■■□□□ 1 / 2 (Medium 1)
Stack ■■■■□□□ 1 / 2 (Easy 1)
Union-Find ■■■■□□□ 2 / 4 (Medium 2)
Sorting ■■■□□□□ 5 / 11 (Medium 3, Easy 2)
Dynamic Programming ■■■□□□□ 8 / 18 (Easy 2, Medium 6)
Matrix ■■■□□□□ 3 / 7 (Medium 3)
Binary Search Tree ■■□□□□□ 1 / 3 (Medium 1)
Linked List ■■□□□□□ 2 / 6 (Easy 2)
Sliding Window ■■□□□□□ 1 / 3 (Medium 1)
Two Pointers ■■□□□□□ 3 / 10 (Medium 2, Easy 1)
Depth-First Search ■■□□□□□ 5 / 18 (Medium 4, Easy 1)
Greedy ■■□□□□□ 1 / 4 (Medium 1)
Heap (Priority Queue) ■■□□□□□ 1 / 4 (Medium 1)
Breadth-First Search ■■□□□□□ 3 / 13 (Medium 2, 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)
Combinatorics □□□□□□□ 0 / 1 ← 아직 시작 안 함
Data Stream □□□□□□□ 0 / 1 ← 아직 시작 안 함
Graph Theory □□□□□□□ 0 / 5 ← 아직 시작 안 함
Hash Function □□□□□□□ 0 / 1 ← 아직 시작 안 함
Merge Sort □□□□□□□ 0 / 1 ← 아직 시작 안 함
String Matching □□□□□□□ 0 / 1 ← 아직 시작 안 함
Topological Sort □□□□□□□ 0 / 2 ← 아직 시작 안 함

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

🔢 API 사용량 (gpt-4.1-nano)
요청 입력 토큰 출력 토큰 합계 비용
#1 2,453 168 2,621 $0.000313

@dalestudy
Copy link
Copy Markdown
Contributor

dalestudy bot commented Apr 18, 2026

📊 시간/공간 복잡도 분석

longest-substring-without-repeating-characters

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

피드백: 슬라이딩 윈도우와 HashSet을 이용한 최적의 방법으로 시간복잡도 O(n)과 공간복잡도 O(n)을 달성하였으며, 효율적입니다.

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

number-of-islands

ℹ️ 이 파일에는 2가지 풀이가 포함되어 있어 각각 분석합니다.

풀이 1: Solution.numIslands (Java DFS) — Time: ✅ O(m*n) → O(m*n) / Space: ✅ O(m*n) → O(m*n)
유저 분석 실제 분석 결과
Time O(m*n) O(m*n)
Space O(m*n) O(m*n)

피드백: DFS를 이용하여 섬을 탐색하는 방식으로, 시간복잡도와 공간복잡도 모두 적절하게 구현되어 있습니다.

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

풀이 2: Solution.numIslands (Python DFS) — Time: ✅ O(m*n) → O(m*n) / Space: ✅ O(m*n) → O(m*n)
유저 분석 실제 분석 결과
Time O(m*n) O(m*n)
Space O(m*n) O(m*n)

피드백: 파이썬 재귀 DFS 방식도 동일하게 효율적이며, 시간과 공간 모두 적절하게 구현되어 있습니다.

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

number-of-islands

ℹ️ 이 파일에는 2가지 풀이가 포함되어 있어 각각 분석합니다.

풀이 1: Solution.numIslands (Java DFS) — Time: ✅ O(m*n) → O(m*n) / Space: ✅ O(m*n) → O(m*n)
유저 분석 실제 분석 결과
Time O(m*n) O(m*n)
Space O(m*n) O(m*n)

피드백: DFS를 이용하여 섬을 탐색하는 방식으로, 시간복잡도와 공간복잡도 모두 적절하게 구현되어 있습니다.

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

풀이 2: Solution.numIslands (Python DFS) — Time: ✅ O(m*n) → O(m*n) / Space: ✅ O(m*n) → O(m*n)
유저 분석 실제 분석 결과
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(n) O(n)

피드백: 스택을 이용하여 리스트를 역순으로 재구성하는 방식으로, 시간복잡도와 공간복잡도 모두 적절합니다.

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

set-matrix-zeroes

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

피드백: 행과 열을 별도 배열로 저장하는 방식으로, 시간복잡도 O(mn)과 공간복잡도 O(m+n)을 달성하였으며, 효율적입니다.

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

unique-paths

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

피드백: 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.

🏷️ 알고리즘 패턴 분석

  • 패턴: Sliding Window
  • 설명: 이 코드는 연속된 문자열 구간을 탐색하며 중복을 제거하는 슬라이딩 윈도우 기법을 사용하여 최장 길이를 찾는다.

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.

🏷️ 알고리즘 패턴 분석

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

🏷️ 알고리즘 패턴 분석

  • 패턴: Stack / Priority Queue
  • 설명: 이 코드는 스택을 이용하여 리스트 값을 역순으로 재구성하는 방식으로, 스택 자료구조를 활용하는 패턴에 속합니다.

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.

🏷️ 알고리즘 패턴 분석

  • 패턴: Matrix Manipulation
  • 설명: 이 코드는 2차원 배열에서 특정 조건에 따라 행과 열을 변경하는 문제로, 패턴 목록에 없는 'Matrix Manipulation'에 해당합니다. 주어진 조건에 따라 행과 열을 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 패턴입니다.

@hyeri0903 hyeri0903 moved this from Solving to In Review in 리트코드 스터디 7기 Apr 18, 2026
Copy link
Copy Markdown
Contributor

@kangdaia kangdaia left a comment

Choose a reason for hiding this comment

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

수고하셨습니다!

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