Skip to content

[ohkingtaek] WEEK7 Solutions#2548

Merged
ohkingtaek merged 4 commits intoDaleStudy:mainfrom
ohkingtaek:main
Apr 18, 2026
Merged

[ohkingtaek] WEEK7 Solutions#2548
ohkingtaek merged 4 commits intoDaleStudy:mainfrom
ohkingtaek:main

Conversation

@ohkingtaek
Copy link
Copy Markdown
Contributor

@ohkingtaek ohkingtaek 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
  • 설명: 이 코드는 두 포인터를 이용해 연속된 문자열 구간을 탐색하며, 중복을 방지하기 위해 set을 활용하는 슬라이딩 윈도우 패턴을 사용합니다.

@dalestudy
Copy link
Copy Markdown
Contributor

dalestudy bot commented Apr 18, 2026

📊 ohkingtaek 님의 학습 현황

이번 주 제출 문제

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

누적 학습 요약

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

문제 풀이 현황

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

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

🔢 API 사용량 (gpt-4.1-nano)
요청 입력 토큰 출력 토큰 합계 비용
#1 1,803 137 1,940 $0.000235

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
  • 설명: 이 코드는 2차원 배열을 순회하며 섬을 찾고, DFS를 통해 연결된 섬의 모든 부분을 탐색하는 방식으로 섬의 개수를 셉니다. DFS는 재귀 또는 스택을 이용한 깊이 우선 탐색 패턴입니다.

@dalestudy
Copy link
Copy Markdown
Contributor

dalestudy bot commented Apr 18, 2026

📊 시간/공간 복잡도 분석

longest-substring-without-repeating-characters

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

피드백: 시간 복잡도와 공간 복잡도가 모두 적절하게 계산되어 있습니다. 이 방법은 간단하지만 효율적이지 않을 수 있으니, 슬라이딩 윈도우 기법을 고려해볼 만합니다.

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

number-of-islands

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

피드백: 시간과 공간 복잡도 모두 정확하게 계산되어 있습니다. BFS 또는 DFS를 활용하는 표준 접근법입니다.

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

reverse-linked-list

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

피드백: 시간과 공간 복잡도 모두 정확하게 계산되어 있으며, 효율적인 방법입니다.

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

set-matrix-zeroes

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

피드백: 시간과 공간 복잡도 계산이 정확하며, 집합을 이용한 표준 방법입니다.

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


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

🏷️ 알고리즘 패턴 분석

  • 패턴: Fast & Slow Pointers
  • 설명: 이 코드는 두 포인터를 활용하여 리스트를 역순으로 뒤집는 과정에서, 현재 노드와 이전 노드를 가리키는 포인터를 사용하므로 Fast & Slow Pointers 패턴에 속합니다.

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
  • 설명: 이 코드는 행과 열을 기준으로 0의 위치를 기록하고, 해당 위치를 0으로 변경하는 과정에서 두 포인터처럼 행과 열을 반복 탐색하는 방식을 사용합니다.

@hwi-middle hwi-middle self-requested a review April 18, 2026 09:49
Copy link
Copy Markdown
Contributor

@hwi-middle hwi-middle left a comment

Choose a reason for hiding this comment

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

이번 주도 수고 많으셨습니다 :)

@ohkingtaek ohkingtaek merged commit ee76da0 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