Skip to content

[dolphinflow86] WEEK 06 Solutions - #2784

Open
dolphinflow86 wants to merge 9 commits into
DaleStudy:mainfrom
dolphinflow86:main
Open

[dolphinflow86] WEEK 06 Solutions#2784
dolphinflow86 wants to merge 9 commits into
DaleStudy:mainfrom
dolphinflow86:main

Conversation

@dolphinflow86

@dolphinflow86 dolphinflow86 commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

답안 제출 문제

작성자 체크 리스트

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

검토자 체크 리스트

Important

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

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

@dalestudy

dalestudy Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

📊 dolphinflow86 님의 학습 현황

이번 주 제출 문제

문제 난이도 유형 분석
container-with-most-water Medium ✅ 의도한 유형
design-add-and-search-words-data-structure Medium ℹ️ 카테고리 정보 없음
longest-increasing-subsequence Medium ✅ 의도한 유형
spiral-matrix Medium ✅ 의도한 유형
valid-parentheses Easy ✅ 의도한 유형

누적 학습 요약

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

문제 풀이 현황

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

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

🔢 API 사용량 (gpt-5-nano)
요청 입력 토큰 출력 토큰 합계 비용
1 810 124 934 $0.000090
2 1,420 157 1,577 $0.000134
3 1,402 122 1,524 $0.000119
4 1,361 150 1,511 $0.000128
5 2,218 185 2,403 $0.000185
6 2,218 228 2,446 $0.000202
7 1,599 196 1,795 $0.000158
합계 11,028 1,162 12,190 $0.001016

@dolphinflow86 dolphinflow86 moved this from In Review to Solving in 리트코드 스터디 8기 Jul 30, 2026
@DaleSeo
DaleSeo self-requested a review July 30, 2026 00:36

@DaleSeo DaleSeo left a comment

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.

수고하셨습니다. 취향 문제일 수도 있는 사소한 댓글 하나 남겼어요~

Comment thread container-with-most-water/dolphinflow86.py Outdated

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.

pair 쌍을 dict를 통해 만들어보시는건 어떨까요?
여는 괄호를 key로 하고 닫는 괄호는 value로 하는거죠!
x in dictionary 연산에서 x는 dictionary의 키 중 하나이면 True인것을 이용하면
코드를 매우 간결하게 구현할수 있으실겁니다!

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

와..생각치 못했는데 코드가 엄청 깔끔해지겠네요.
한번 적용 해 보겠습니다. 👍

Comment thread valid-parentheses/dolphinflow86.py Outdated
stack = []

for ch in s:
if ch == '(' or ch == '{' or ch == '[':

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.

이부분을 그러니까 ch in pair 로 대체 가능하세요!
해상 연산은 pair에 ch가 key로 존재하는지 확인하기 때문에 정확히 동일한 연산으로 작동하게 됩니다.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

아 제가 아래부분만 바꾸고 여기는 안바꿨군요!
수정 완료했습니다. 훨씬 깔끔해요!

@dolphinflow86 dolphinflow86 moved this from Solving to In Review in 리트코드 스터디 8기 Jul 31, 2026
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.

3 participants