Skip to content

[grapefruit13] WEEK 02 solutions#2426

Merged
SamTheKorean merged 3 commits intoDaleStudy:mainfrom
grapefruit13:main
Mar 15, 2026
Merged

[grapefruit13] WEEK 02 solutions#2426
SamTheKorean merged 3 commits intoDaleStudy:mainfrom
grapefruit13:main

Conversation

@grapefruit13
Copy link
Contributor

@grapefruit13 grapefruit13 commented Mar 14, 2026

답안 제출 문제

작성자 체크 리스트

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

검토자 체크 리스트

Important

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

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

@grapefruit13 grapefruit13 moved this from Solving to In Review in 리트코드 스터디 7기 Mar 14, 2026
@reeseo3o reeseo3o self-requested a review March 14, 2026 07:25
Copy link
Contributor

@reeseo3o reeseo3o left a comment

Choose a reason for hiding this comment

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

세 문제 모두 풀이 선택이 정석적이고, 주석 덕분에 문제 의도랑 접근 방식이 잘 드러나서 좋았습니다.

// 알파벳 등장 횟수를 저장할 배열
// index 0 -> 'a'
// index 1 -> 'b'
const count = new Array(LOWER_ALPHABET_COUNT).fill(0);
Copy link
Contributor

Choose a reason for hiding this comment

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

알파벳 빈도를 count 배열 하나로 올리고/내리는 방식이 인상적이네요!
추가 메모리를 거의 안 쓰면서 두 문자열을 한 번에 처리할 수 있어서 효율적인 구현 같습니다.

@@ -0,0 +1,32 @@
/**
* @description 1칸 또는 2칸씩 올라갈 수 있을 때 n번째 계단에 도달하는 경우의 수
* 점화식: ways(n) = ways(n-1) + ways(n-2)
Copy link
Contributor

Choose a reason for hiding this comment

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

점화식이랑 base case를 코드/주석으로 잘 풀어 써주셔서 로직이 바로 이해되네요.

@SamTheKorean SamTheKorean merged commit 2a997a3 into DaleStudy:main Mar 15, 2026
1 check passed
@github-project-automation github-project-automation bot moved this from In Review to Completed in 리트코드 스터디 7기 Mar 15, 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.

3 participants