Skip to content

[robinyoon-dev] WEEK 11 Solutions#2598

Merged
DaleSeo merged 2 commits into
DaleStudy:mainfrom
robinyoon-dev:main
May 23, 2026
Merged

[robinyoon-dev] WEEK 11 Solutions#2598
DaleSeo merged 2 commits into
DaleStudy:mainfrom
robinyoon-dev:main

Conversation

@robinyoon-dev
Copy link
Copy Markdown
Contributor

@robinyoon-dev robinyoon-dev commented May 11, 2026

작성자 체크 리스트

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

검토자 체크 리스트

Important

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

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🏷️ 알고리즘 패턴 분석

  • 패턴: Sorting
  • 설명: 이 코드는 먼저 intervals를 정렬한 후, 정렬된 배열을 순회하며 겹치는 구간을 병합하는 방식으로 문제를 해결한다. 정렬이 핵심 단계로 사용되어 병합 과정을 용이하게 만든다.

📊 시간/공간 복잡도 분석

복잡도
Time O(n log n)
Space O(n)

피드백: 배열 정렬에 O(n log n) 시간이 소요되고, 결과 저장을 위해 O(n) 공간이 필요합니다. 반복문은 O(n)입니다.

개선 제안: 현재 구현이 적절해 보입니다.

💡 풀이에 시간/공간 복잡도를 주석으로 남겨보세요!

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🏷️ 알고리즘 패턴 분석

  • 패턴: Sorting
  • 설명: 이 코드는 배열을 정렬한 후 인덱스와 값이 일치하는지 차례로 검사하여 누락된 숫자를 찾는 방식으로, 정렬 패턴이 사용되었습니다.

📊 시간/공간 복잡도 분석

복잡도
Time O(n log n)
Space O(1)

피드백: 배열 정렬에 O(n log n) 시간이 소요되고, 이후 순차 검사로 O(n)입니다. 공간은 정렬을 위한 제자리 정렬이 아니면 추가 공간이 필요할 수 있으나, 여기서는 sort의 공간 복잡도 고려.

개선 제안: 현재 구현이 적절해 보입니다.

💡 풀이에 시간/공간 복잡도를 주석으로 남겨보세요!

@github-actions github-actions Bot added the js label May 11, 2026
@dalestudy
Copy link
Copy Markdown
Contributor

dalestudy Bot commented May 11, 2026

📊 robinyoon-dev 님의 학습 현황

이번 주 제출 문제

문제 난이도 유형 분석
merge-intervals Medium ⚠️ 유형 불일치
missing-number Easy ⚠️ 유형 불일치

누적 학습 요약

  • 풀이한 문제: 28 / 75개
  • 이번 주 유형 일치율: 0% (2문제 중 0문제 일치)

문제 풀이 현황

카테고리 진행도 완료
Array ■■■■■□□ 7 / 10 (Easy 3, Medium 4)
Linked List ■■■■□□□ 3 / 6 (Easy 3)
String ■■■■□□□ 5 / 10 (Medium 2, Easy 3)
Dynamic Programming ■■■□□□□ 5 / 11 (Easy 1, Medium 4)
Binary ■■■□□□□ 2 / 5 (Easy 2)
Heap ■■□□□□□ 1 / 3 (Medium 1)
Matrix ■■□□□□□ 1 / 4 (Medium 1)
Tree ■■□□□□□ 3 / 14 (Medium 1, Easy 2)
Graph ■□□□□□□ 1 / 8 (Medium 1)
Interval □□□□□□□ 0 / 5 ← 아직 시작 안 함

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

🔢 API 사용량 (gpt-4.1-nano)
요청 입력 토큰 출력 토큰 합계 비용
1 743 69 812 $0.000102

@Cyjin-jani Cyjin-jani self-requested a review May 12, 2026 14:59
Copy link
Copy Markdown
Contributor

@Cyjin-jani Cyjin-jani left a comment

Choose a reason for hiding this comment

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

리뷰가 늦었습니다ㅜ 고생많으셨습니다!

var missingNumber = function (nums) {

let n = nums.length + 1;
let sortedNums = nums.sort((a, b) => a - b);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

sort를 사용하셨군요! 👍

@DaleSeo DaleSeo merged commit 940fb79 into DaleStudy:main May 23, 2026
3 checks passed
@github-project-automation github-project-automation Bot moved this from Solving to Completed in 리트코드 스터디 7기 May 23, 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