Skip to content

[tedkimdev] WEEK 07 Solutions#2534

Open
tedkimdev wants to merge 1 commit intoDaleStudy:mainfrom
tedkimdev:tedkimdev/week7
Open

[tedkimdev] WEEK 07 Solutions#2534
tedkimdev wants to merge 1 commit intoDaleStudy:mainfrom
tedkimdev:tedkimdev/week7

Conversation

@tedkimdev
Copy link
Copy Markdown
Contributor

@tedkimdev tedkimdev commented Apr 15, 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, 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.

🏷️ 알고리즘 패턴 분석

  • 패턴: Iterative
  • 설명: 이 코드는 연결 리스트를 역순으로 뒤집기 위해 반복문을 사용하여 노드의 포인터를 차례로 변경하는 방식으로 구현되어 있습니다. 일반적으로 'Two Pointers' 또는 'Iterative' 패턴에 속할 수 있지만, 명확한 패턴 이름이 명시되어 있지 않아 'Iterative'로 표기하였습니다.

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
  • 설명: 이 코드는 행과 열을 동시에 순회하며 조건에 따라 값을 변경하는데, 두 포인터 방식으로 인덱스를 조작하는 패턴이 활용됩니다.

Comment thread unique-paths/tedkimdev.go
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 패턴에 속합니다.

@dalestudy
Copy link
Copy Markdown
Contributor

dalestudy bot commented Apr 15, 2026

📊 tedkimdev 님의 학습 현황

이번 주 제출 문제

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

누적 학습 요약

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

문제 풀이 현황

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

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

🔢 API 사용량 (gpt-4.1-nano)
요청 입력 토큰 출력 토큰 합계 비용
#1 1,947 166 2,113 $0.000261

Copy link
Copy Markdown
Member

@DaleSeo DaleSeo left a comment

Choose a reason for hiding this comment

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

너무 깔끔하게 잘 풀어주셔서 딱히 개선 사항이 안 보이네요. 그래서 억지로 하나 짜냈습니다 ㅋㅋ 남은 주차도 화이팅하세요!

Comment thread unique-paths/tedkimdev.go
@@ -0,0 +1,17 @@
// TC: O(m * n)
// SC: O(m * n)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

각 행의 계산이 바로 아래 행에만 의존하므로, 일차원 배열로 최적화하면 O(n) 공간으로 줄일 수 있을 것 같습니다.

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

Labels

Projects

Status: In Review

Development

Successfully merging this pull request may close these issues.

2 participants