-
-
Notifications
You must be signed in to change notification settings - Fork 194
[KwonNayeon] Week 13 solutions #1621
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
Conversation
3. 리스트의 요소 갯수가 홀수/짝수일 때의 경우를 나눠서 median 값을 구함 | ||
|
||
메모: | ||
- heap이 익숙하지 않아서 일단 리스트로 문제를 풀었습니다. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
저도 heap 문법이 익숙하지 않아서 찾아보며 했는데 막상 써보면 쉽더라구여.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
저도 heap으로 도전해봐야겠어요! 감사합니당 👍
else: | ||
mid1 = self.nums[n // 2 - 1] | ||
mid2 = self.nums[n // 2] | ||
return (mid1 + mid2) / 2.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
소수임을 명시하기 위해 2.0을 쓰신 점 배워갑니다.
@@ -13,12 +13,19 @@ | |||
|
|||
풀이방법: | |||
1. Base case: 빈 배열/none일 때 True 반환 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
풀이 방법, 메모 등 정리를 정말 잘하시는거 같아요. 한 문제를 풀어도 기억에 오래 남을거 같은 좋은 방법이네요 잘 보고 갑니다 👍🏻😃
@hi-rachel 님 꼼꼼한 리뷰 감사합니다! |
답안 제출 문제
작성자 체크 리스트
In Review
로 설정해주세요.검토자 체크 리스트
Important
본인 답안 제출 뿐만 아니라 다른 분 PR 하나 이상을 반드시 검토를 해주셔야 합니다!