Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[gomgom22] Week4 #829

Merged
merged 6 commits into from
Jan 4, 2025
Merged

[gomgom22] Week4 #829

merged 6 commits into from
Jan 4, 2025

Conversation

Yjason-K
Copy link
Contributor

@Yjason-K Yjason-K commented Jan 2, 2025

답안 제출 문제

체크 리스트

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

@Yjason-K Yjason-K added the ts label Jan 2, 2025
@Yjason-K Yjason-K requested a review from GotPrgmer January 2, 2025 13:42
@Yjason-K Yjason-K requested a review from a team as a code owner January 2, 2025 13:42
Copy link
Contributor

@HC-kang HC-kang left a comment

Choose a reason for hiding this comment

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

@Yjason-K 님, 4주차도 고생 많으셨습니다!
앞으로도 많은 참여 부탁드려요!

// 너비 우선 탐색을 활용한 풀이

const queue: [number, number] [] = [[0, 0]]; // [현재 총합, 깊이]
const visited = new Set<number>();
Copy link
Contributor

Choose a reason for hiding this comment

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

여기서도, 만약 동전에 1원이 있다면 O(m) 만큼의 공간 복잡도가 필요할것 같아요

if (!list1 || !list2) return list1 || list2;

// 시작점을 위한 더미 헤드 노드 생성
const start = new ListNode(-101);
Copy link
Contributor

Choose a reason for hiding this comment

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

-101에 담고싶으셨던 의미가 있을까요?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

큰 의미는 없고 val 제약 조건에 포함되지 않는 수를 지정하고 싶었어요!

missing-number/Yjason-K.ts Show resolved Hide resolved
@Yjason-K Yjason-K merged commit e97a84e into DaleStudy:main Jan 4, 2025
1 check passed
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