Skip to content

[alphaorderly] WEEK 03 Solutions - #2955

Merged
parkhojeong merged 3 commits into
DaleStudy:mainfrom
alphaorderly:week-03
Nov 29, 2026
Merged

parkhojeong merged 3 commits into
DaleStudy:mainfrom
alphaorderly:week-03

Conversation

@alphaorderly

Copy link
Copy Markdown
Contributor

답안 제출 문제

작성자 체크 리스트

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

검토자 체크 리스트

Important

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

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

@dalestudy

dalestudy Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

⚠️ Week 설정이 누락되었습니다

프로젝트에서 Week를 설정해주세요!

설정 방법

  1. PR 우측의 Projects 섹션에서 리트코드 스터디 옆 드롭다운(▼) 클릭
  2. 현재 주차를 선택해주세요 (예: Week 14(current) 또는 Week 14)

📚 자세한 가이드 보기


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

@dalestudy

dalestudy Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

🤖 AI 리뷰(알고리즘 패턴, 시간/공간 복잡도, 학습 현황) 결과는 Checks 탭에서 볼 수 있어요.

@DaleSeo
DaleSeo self-requested a review November 26, 2026 03:30

@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 decode-ways/alphaorderly.ts Resolved
Comment thread combination-sum/alphaorderly.ts Resolved
alphaorderly and others added 2 commits November 29, 2026 02:17
Co-authored-by: Dale Seo <5466341+DaleSeo@users.noreply.github.com>
Co-authored-by: Dale Seo <5466341+DaleSeo@users.noreply.github.com>
}

for (let i = index; i < nums.length;i += 1) {
if (target - nums[i] < 0) continue;

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.

정렬 대신 continue로 해당 숫자만 건너뛰는 방식으로 푸셨네요..!

return ans;
};

function backtracking(nums: number[], index: number, target: number, ans: number[][], app: number[]): void {

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.

백트래킹 함수를 바깥에 두고 필요한 걸 모두 parameter로 넘겨서, 어떤 변수를 쓰는지 한눈에 알아볼 수 있어서 좋네요! 🙂

@parkhojeong
parkhojeong merged commit 84abde8 into DaleStudy:main Nov 29, 2026
3 checks passed
@github-project-automation github-project-automation Bot moved this from In Review to Completed in 리트코드 스터디 9기 Nov 29, 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.

4 participants