-
-
Notifications
You must be signed in to change notification settings - Fork 195
[SunaDu] Week 14 #1099
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
[SunaDu] Week 14 #1099
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.
아직 풀이 중이시지만, 다양한 풀이 방식, 깔끔하고 이해하기 쉬운 주석... 그리고 무엇보다 제가 풀면서 바라보지 못했던 관점들을 학습할 수 있어 매우 유익했습니다. 대단하시네요!
queue = deque([root]) # SC: O(n) | ||
|
||
while queue: # TC: O(n) | ||
level_size = len(queue) |
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.
오 같은 레벨을 이런 식으로 관리할 수도 있군요! 하나 배워 갑니다.
return nums[0] | ||
|
||
def robbing(start, end): | ||
prev, maxAmount = 0, 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.
오 이런식으로 공간 최적화도 할 수 있군요!
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.
문제를 풀거나 막힌 뒤에 알고달레 풀이와 Leetcode Solutions 탭을 보면서 정리하는 과정이 도움이 많이 되었어요. 공간 최적화도 이 방법으로 진행했습니다!
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.
14주차 문제 풀이 고생하셨습니다!
어느덧 15주차 마지막주가 다가왔네요.
아무쪼록 지난 15주 동안 릿코드 스터디가 많은 도움이 되셨으면 좋겠습니다.
다음주에 뵙겠습니다!
리뷰 감사합니다😊 @gwbaik9717 님의 풀이를 보면서 보조 클래스를 활용해 구성하신 점이 인상적이었습니다. 저는 최근에 파이썬으로 문제를 풀면서 내장 함수 & 라이브러리 함수를 활용하다보니, 기본적인 동작 원리에 대한 고민이 부족했던 것 같다는 생각이 드네요. 마지막 주도 화이팅입니다! |
답안 제출 문제
체크 리스트
In Review
로 설정해주세요.