Skip to content

[dahyeong-yun] WEEK 03 Solutions#2724

Merged
dahyeong-yun merged 7 commits into
DaleStudy:mainfrom
dahyeong-yun:main
Jul 11, 2026
Merged

[dahyeong-yun] WEEK 03 Solutions#2724
dahyeong-yun merged 7 commits into
DaleStudy:mainfrom
dahyeong-yun:main

Conversation

@dahyeong-yun

@dahyeong-yun dahyeong-yun commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

답안 제출 문제

작성자 체크 리스트

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

검토자 체크 리스트

Important

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

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

@dalestudy

dalestudy Bot commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

📊 dahyeong-yun 님의 학습 현황

이번 주 제출 문제

문제 난이도 유형 분석
combination-sum Medium ✅ 의도한 유형
decode-ways Medium ✅ 의도한 유형
maximum-subarray Medium ✅ 의도한 유형
number-of-1-bits Easy ⚠️ 유형 불일치
valid-palindrome Easy ✅ 의도한 유형

누적 학습 요약

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

문제 풀이 현황

카테고리 진행도 완료
Array ■■■□□□□ 4 / 10 (Medium 2, Easy 2)
Heap ■■□□□□□ 1 / 3 (Medium 1)
Dynamic Programming ■□□□□□□ 2 / 11 (Easy 1, Medium 1)
Graph ■□□□□□□ 1 / 8 (Medium 1)
String ■□□□□□□ 1 / 10 (Easy 1)
Tree ■□□□□□□ 1 / 14 (Medium 1)
Binary □□□□□□□ 0 / 5 ← 아직 시작 안 함
Interval □□□□□□□ 0 / 5 ← 아직 시작 안 함
Linked List □□□□□□□ 0 / 6 ← 아직 시작 안 함
Matrix □□□□□□□ 0 / 4 ← 아직 시작 안 함

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

🔢 API 사용량 (gpt-5-nano)
요청 입력 토큰 출력 토큰 합계 비용
1 694 37 731 $0.000050
2 694 46 740 $0.000053
3 1,108 74 1,182 $0.000085
4 1,850 110 1,960 $0.000137
5 2,680 187 2,867 $0.000209
6 3,761 185 3,946 $0.000262
합계 10,787 639 11,426 $0.000795

@seueooo seueooo self-requested a review July 10, 2026 12:40

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.

🏷️ 알고리즘 패턴 분석

  • 패턴: Backtracking, Depth-First Search, Greedy
  • 설명: 백트래킹으로 모든 조합을 탐색하고, 합이 타깃과 같아지면 정답에 추가합니다. 각 재귀에서 후보를 고정된 시작 위치부터 반복하며, 재귀호출로 깊이 우선 탐색을 수행합니다.

📊 시간/공간 복잡도 분석

유저 분석 실제 분석 결과
Time O(H(N, M) * M) O(K * N^K)
Space O(H(N, M) * M) O(K)

피드백: 백트래킹으로 중복 조합을 고려하되 시작 인덱스를 i로 고정하여 중복 조합을 제거하고 합이 타깃을 넘으면 가지치기를 한다.

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

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, Top-Down / Memoization
  • 설명: 주어진 코드는 한 자리/두 자리 파싱 가능 여부를 재귀로 탐색하고, 중복을 dp 배열로 저장하는 메모이제이션 다이나믹 프로그래밍 패턴을 사용합니다. 부분 문제의 해를 합쳐 최종 해를 구하는 특성도 보입니다.

📊 시간/공간 복잡도 분석

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

피드백: 상태를 start 인덱스로 두고 한 자리 또는 두 자리로 파싱 가능한 경우를 재귀적으로 합산한다. DP 배열로 중복 계산을 방지한다.

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

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.

🏷️ 알고리즘 패턴 분석

  • 패턴: Greedy
  • 설명: 카데인 알고리즘으로 연속 부분 배열 합의 최대를 구하는 문제로, 현 위치까지의 최적 부분해를 누적하고 큰 값을 선택하는 방식이다. O(n) 시간, O(1) 공간의 특징도 있다.

📊 시간/공간 복잡도 분석

유저 분석 실제 분석 결과
Time O(n) O(n)
Space O(1) O(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.

🏷️ 알고리즘 패턴 분석

  • 패턴: Bit Manipulation, Greedy, Divide and Conquer, Dynamic Programming, Hash Map / Hash Set, Two Pointers, Sliding Window, Fast & Slow Pointers, BFS, DFS, Backtracking, Union Find, Trie, Heap / Priority Queue, Monotonic Stack
  • 설명: 코드는 비트 연산으로 1의 개수를 구하는 두 구현을 포함합니다. 비트 조작(Bit Manipulation) 패턴이 핵심이며, 제2 구현은 반복을 이용한 진법 변환 개념으로도 해석될 수 있습니다.

📊 시간/공간 복잡도 분석

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

피드백: 128비트까지의 정수에 대해서 비트 카운트 연산을 수행한다. 보조 풀이도 함께 첨부되어 있다.

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

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
  • 설명: 문자열 양 끝에서 문자 비교를 진행하는 투 포인터 방식으로, 좌우를 동시에 진행하며 조건에 맞게 스킵하거나 비교하는 구성이므로 투 포인터 패턴에 속합니다.

📊 시간/공간 복잡도 분석

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

피드백: 비 알파벳/숫자 문자는 건너뛰고 소문자로 비교하여 대칭 여부를 판단한다.

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

@dahyeong-yun dahyeong-yun moved this from Solving to In Review in 리트코드 스터디 8기 Jul 11, 2026

@seueooo seueooo left a comment

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.

설명이 자세히 적혀있어 이해하기 쉬웠습니다! 깔끔하고 최적화가 잘되어있는 것 같아요 잘보고갑니다👍

@dahyeong-yun dahyeong-yun merged commit e241fbb into DaleStudy:main Jul 11, 2026
1 check passed
@github-project-automation github-project-automation Bot moved this from In Review to Completed in 리트코드 스터디 8기 Jul 11, 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