Skip to content

Conversation

@doh6077
Copy link
Contributor

@doh6077 doh6077 commented Nov 18, 2025

답안 제출 문제

작성자 체크 리스트

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

검토자 체크 리스트

Important

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

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

@doh6077 doh6077 moved this from Solving to In Review in 리트코드 스터디 6기 Nov 21, 2025
@yuhyeon99
Copy link
Contributor

안녕하세요! 풀이 고생하셨습니다~
#230 climbing stairs
문제가 추가되어있지 않은 것 같은데 일부러 빼신걸까요? 혹시나 못 보셨을까봐 여쭤봤습니다!

Comment on lines +1 to +10
class Solution:
def isValidBST(self, root: Optional[TreeNode]) -> bool:
def validate(node: Optional[TreeNode], low: float, high: float) -> bool:
if not node:
return True
if not (low < node.val < high):
return False
return (validate(node.left, low, node.val) and
validate(node.right, node.val, high))
return validate(root, float('-inf'), float('inf'))
Copy link
Contributor

Choose a reason for hiding this comment

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

재귀적으로 잘 푸신 것 같습니다!


for i in range(n - 2):
# i 중복 스킵
if i > 0 and nums[i] == nums[i - 1]:
Copy link
Contributor

Choose a reason for hiding this comment

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

이 조건문이 없으면 제출 테스트케이스 끝자락에서 오류가 발생하더라구요..
[0, 0, 0, 0 ...] 이런 상황에서 유용하게 쓰일 것 같습니다👍

class Solution:
# dictionary use
def topKFrequent(self, nums: List[int], k: int) -> List[int]:
result = {} # key: 원소, value: 등장 횟수
Copy link
Contributor

Choose a reason for hiding this comment

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

해시 테이블을 활용해서 횟수 계산 로직이 명확하고 가독성이 좋아 이해하기 쉬운 코드였습니다👍

Copy link
Contributor

@yuhyeon99 yuhyeon99 left a comment

Choose a reason for hiding this comment

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

이번 주도 고생하셨습니다~

@TonyKim9401 TonyKim9401 merged commit cd3eb3f into DaleStudy:main Nov 23, 2025
1 check passed
@github-project-automation github-project-automation bot moved this from In Review to Completed in 리트코드 스터디 6기 Nov 23, 2025
@doh6077
Copy link
Contributor Author

doh6077 commented Nov 23, 2025

이번 주도 고생하셨습니다~

climbing stars 문제가 생각보다 어려워서 나중에 푸려고 제외시켜놓고 누락시켜버렸네요 ㅠ 다음에 다시 확인하도록 하겠습니다 :) 좋은 리뷰 주셔서 감사합니다! 다음 한주도 파이팅입니다!

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.

3 participants