-
-
Notifications
You must be signed in to change notification settings - Fork 245
[seungriyou] Week 02 Solutions #1214
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
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.
풀이 설명이나 코드 작성 하실 때
구현 → 개선 → 다른 방법
순서로 정리 해주셔서, 마치 해답지를 보는 느낌으로 이해가 잘 되었습니다!
그 덕분에 문제 접근 방식뿐만 아니라 다양한 풀이 아이디어까지 함께 배울 수 있었습니다. 감사합니다!
|
||
[Approach] | ||
two sum 문제에서 고정된 하나의 값만 추가해서 풀 수 있다. | ||
정렬을 한 차례하면, duplicated triplet 처리가 가능하다. |
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.
복잡도, 접근법 설명이 보기 쉽게 나와 있어서 좋았습니다!!
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.
감사합니다~! 😆
- TC: O(n) | ||
- SC: O(1) | ||
|
||
[Approach] |
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.
풀이도 설명도 깔끔해서 너무 좋았습니다!
if v != 0: | ||
return False | ||
|
||
return 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.
정렬 → 카운터 → 수동으로 카운트 하는 방식으로 최적화되는 코드를 보여주셔서
보기 편하고 이해가 잘 되는 좋은 코드였습니다!
답안 제출 문제
작성자 체크 리스트
In Review
로 설정해주세요.검토자 체크 리스트
Important
본인 답안 제출 뿐만 아니라 다른 분 PR 하나 이상을 반드시 검토를 해주셔야 합니다!