Skip to content

[grapefruitgreentealoe] WEEK 04 Solutions #1818

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

Merged
merged 9 commits into from
Aug 16, 2025

Conversation

grapefruitgreentealoe
Copy link
Contributor

@grapefruitgreentealoe grapefruitgreentealoe commented Aug 11, 2025

답안 제출 문제

작성자 체크 리스트

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

검토자 체크 리스트

Important

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

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

@github-actions github-actions bot added the js label Aug 11, 2025
@grapefruitgreentealoe grapefruitgreentealoe changed the title Week4 [grapefruitgreentealoe] WEEK 04 Solutions Aug 11, 2025
@grapefruitgreentealoe grapefruitgreentealoe moved this from Solving to In Review in 리트코드 스터디 5기 Aug 11, 2025
@jongwanra jongwanra self-requested a review August 11, 2025 21:41
let right = nums.length - 1;

while (left !== right) {
let mid = Math.floor((left + right) / 2);
Copy link
Contributor

Choose a reason for hiding this comment

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

Binary Search에서 흔히 사용하는 식이네요!
해당 식과 관련하여 공유드리고 싶은 정보가 있어서 디스코드로 공유해 둘께요 :)

Comment on lines +34 to +35
시간 복잡도: O(log n)
공간 복잡도: O(h)
Copy link
Contributor

Choose a reason for hiding this comment

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

LinkedList의 정렬을 위해서는 각 list1, list2의 모든 요소를 순회해야 하고, 따로 메모리를 사용하지 않으신것 같은데 시간 복잡도 O(m+n), m은 list1의 길이, n은 list2의 길이 / 공간 복잡도 O(1) 라고 생각되요!

Copy link
Contributor

@TonyKim9401 TonyKim9401 left a comment

Choose a reason for hiding this comment

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

문제들을 엄청 꼼꼼하게 풀어주셔서 고민을 많이 하신게 보이네요.
부족하지만 코드 리뷰가 도움이 되셨으면 좋겠습니다.
4주차 문제 풀이 고생하셨습니다!

@grapefruitgreentealoe grapefruitgreentealoe merged commit a158f59 into DaleStudy:main Aug 16, 2025
1 check passed
@github-project-automation github-project-automation bot moved this from In Review to Completed in 리트코드 스터디 5기 Aug 16, 2025
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