Merged
Conversation
ohkingtaek
approved these changes
Mar 7, 2026
ohkingtaek
left a comment
There was a problem hiding this comment.
문제 푸시느라 고생많으셨습니다!
첫번째 문제는 저는 set으로 풀기는 하였는데 코딩테스트 측면에서 시간 복잡도에선 똑같겠지만, 가독성이 더 늘지 않을까 싶습니다
두번쨰 문제를 오히려 해시맵으로 풀면 어떨까 싶네요 저도 그렇게 풀지 않았지만 O(n^2)을 개선할 여지가 있을 것 같습니다!
Contributor
|
우선, 리뷰가 늦어 죄송합니다! 간결한 풀이와 주석 잘 읽었습니다! ohkingtaek님의 리뷰와 동일하게 두 번째 문제를 해시맵을 이용해서 풀면 시간복잡도 측면에서 훨씬 좋을 것 같습니다! 첫 번째 문제의 경우에는 제가 파이썬 set의 내부 구조는 잘 몰라 정확하진 않지만 c++의 set으로 구현시 O(nlogn)의 시간복잡도가 나온다고 파악했는데 파이썬은 c++의 unordered_set과 유사하게 동작하나 보군요! 하나 배우고 갑니다! 리뷰 먼저 해주신 ohkingtaek님 감사합니다. 고생하셨습니다. 다음 주도 화이팅입니다! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
답안 제출 문제
작성자 체크 리스트
In Review로 설정해주세요.검토자 체크 리스트
Important
본인 답안 제출 뿐만 아니라 다른 분 PR 하나 이상을 반드시 검토를 해주셔야 합니다!