Skip to content

[mallayon] Week 13 #1069

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 5 commits into from
Mar 8, 2025
Merged

[mallayon] Week 13 #1069

merged 5 commits into from
Mar 8, 2025

Conversation

mmyeon
Copy link
Contributor

@mmyeon mmyeon commented Mar 2, 2025

답안 제출 문제

체크 리스트

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

@mmyeon mmyeon self-assigned this Mar 2, 2025
@mmyeon mmyeon requested a review from a team as a code owner March 2, 2025 02:25
@github-actions github-actions bot added the ts label Mar 2, 2025
@mmyeon mmyeon requested a review from KwonNayeon March 2, 2025 02:26
Comment on lines +15 to +25
function canAttendMeetings(intervals: number[][]): boolean {
intervals.sort((a, b) => a[0] - b[0]);

for (let i = 1; i < intervals.length; i++) {
const previousMeetingTime = intervals[i - 1];
const currentMeetingTime = intervals[i];
if (currentMeetingTime[0] < previousMeetingTime[1]) return false;
}

return true;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

@mmyeon 님 안녕하세요. 저도 같은 방식으로 문제를 풀었습니다. 아직 문제를 푸는 중이신 것 같네요! 주말까지 파이팅입니다 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@KwonNayeon 님 안녕하세요!
이번 주 리뷰 요청이 늦었네요ㅠㅠ 시간 내어서 리뷰 해주셔서 정말 감사합니다!
이번 주도 문제 푸느라 정말 고생 많으셨어요 👍
벌써 13주라니 놀라워요. 남은 기간도 같이 힘내보아요. 즐거운 주말 되세요!! 😄

@mmyeon mmyeon moved this from Solving to In Review in 리트코드 스터디 3기 Mar 7, 2025
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) 으로 풀이 하려면 어떻게 하면 될까요 :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@TonyKim9401

재정렬하던 로직 제거하고, newInterval를 intervals 배열안에 삽입하도록 개선했습니다!
꼼꼼한 리뷰 감사합니다 :)

Copy link
Contributor

Choose a reason for hiding this comment

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

변수 count 를 사용하여 공간 복잡도를 O(h) h 는 재귀스택, 으로 잘 풀어내신것 같습니다!

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.

13주차 리트코드 문제 풀이 고생 많으셨습니다!
3기 참여중 못푸신 문제 혹은 아쉬우신 부분이 있으시다면 4기 재참여 해보시는 건 어떨까요?
14주차 문제 풀이도 파이팅입니다!

@mmyeon
Copy link
Contributor Author

mmyeon commented Mar 8, 2025

13주차 리트코드 문제 풀이 고생 많으셨습니다! 3기 참여중 못푸신 문제 혹은 아쉬우신 부분이 있으시다면 4기 재참여 해보시는 건 어떨까요? 14주차 문제 풀이도 파이팅입니다!

@TonyKim9401
이번 주도 꼼꼼히 리뷰해주셔서 감사합니다!!
3기 끝나는 게 아쉬워서 이미 4기 재참여 신청했답니다 😄
3기에 이어서 4기도 잘 부탁드립니다 :)

@mmyeon mmyeon merged commit 0c3ddd9 into DaleStudy:main Mar 8, 2025
1 check passed
@github-project-automation github-project-automation bot moved this from In Review to Completed in 리트코드 스터디 3기 Mar 8, 2025
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