Skip to content

Conversation

river20s
Copy link
Contributor

@river20s river20s commented Dec 29, 2024

답안 제출 문제

체크 리스트

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

@river20s river20s requested a review from gmlwls96 December 29, 2024 04:12
@river20s river20s requested a review from a team as a code owner December 29, 2024 04:12
@github-actions github-actions bot added the java label Dec 29, 2024
@river20s river20s changed the title [river20s] WEEK 04 [river20s] Week 04 Dec 29, 2024
@river20s river20s changed the title [river20s] Week 04 [river20s] Week 4 Dec 29, 2024
After sorting the array in ascending order, we compare each index `i` with `nums[i]` to find the missing number. 
The time complexity is O(n log n) due to the sorting step. 
We might revisit this problem later to explore a more optimal O(n) solution with constant extra space.
Copy link
Contributor

Choose a reason for hiding this comment

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

가장 직관적이고 떠올리기 좋은 문제 풀이 방법이에요 :)
릿코드 문제에도 나와있는 것 처럼 O(n)의 시간복잡도로 푸는 방법도 있답니다.
O(n log n) 을 최적화 하여 O(n) 의 방법을 찾아보시면 어떨까요~!

Copy link
Contributor

@SamTheKorean SamTheKorean left a comment

Choose a reason for hiding this comment

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

상세한 풀이 설명 감사합니다! 고생많으셨습니다!

@SamTheKorean SamTheKorean merged commit 203a1c6 into DaleStudy:main Jan 5, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
Status: Completed
Development

Successfully merging this pull request may close these issues.

3 participants