-
-
Notifications
You must be signed in to change notification settings - Fork 195
[river20s] WEEK 01 solutions #1174
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
* Python에서 set()은 배열의 각 원소를 해시 테이블에 저장한다. | ||
|
||
배열에 중복된 요소가 전혀 없다면 모든 요소(n개)를 set에 저장하게 되므로 | ||
|
||
공간 복잡도는 O(n)이 된다. |
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.
안녕하세요. 사실 딱히 리뷰해드릴 것도 없고, set을 쓰는 발상은 배워갑니다.
그래도 먼가 도움을 드려야할것 같아서 쥐어짜서 남깁니다.
배열에 중복된 요소가 전혀 없다면 모든 요소(n개)를 set에 저장하게 되므로
보다는
저장되는 요소의 개수가 n에 비례하여 선형적으로 증가하므로 공간 복잡도는 O(n)이 된다.
이게 좀 더 정확한 표현이지 않을까 싶네요.
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.
안녕하세요! 말씀해주신대로 보다 명확하게 주석 안의 표현을 수정하였습니다! 감사합니다 :)
@Sung-Heon
@Sung-Heon 승인 감사합니다! :-) |
답안 제출 문제
작성자 체크 리스트
In Review
로 설정해주세요.검토자 체크 리스트
Important
본인 답안 제출 뿐만 아니라 다른 분 PR 하나 이상을 반드시 검토를 해주셔야 합니다!