This repository was archived by the owner on Mar 18, 2024. It is now read-only.
[2023-06-18] dohyun #69#72
Merged
Merged
Conversation
y2r1m
approved these changes
Jun 18, 2023
Contributor
y2r1m
left a comment
There was a problem hiding this comment.
재귀로도 풀이하신 게 인상 깊네요 ㅎㅎ 근데 시간이 2배 이상 걸린다니.. 저도 이유가 궁금하네요!!
Contributor
ksumini
approved these changes
Jun 18, 2023
zsmalla
approved these changes
Jun 19, 2023
Contributor
zsmalla
left a comment
There was a problem hiding this comment.
큐에 대한 이해를 완벽하게 잘 하신 것 같고, 재귀에 대해서도 이제 이해를 하시게 된 것 같아서 제가 다 뿌듯하네요!
Contributor
There was a problem hiding this comment.
요렇게 쓰는 것 보다는
while len(queue)!=1:
...
print(queue[0])이렇게 쓰는 편이 더 깔끔할 것 같습니다!
Contributor
There was a problem hiding this comment.
요것도
queue.append(queue.popleft())요렇게 자주 씁니다! popleft & pop은 원소를 제거함과 동시에 그 원소를 반환해주니까요!
Contributor
There was a problem hiding this comment.
재귀로 풀어볼 생각은 1도 못했는데 재밌네요!!
재귀를 활용하게 되면 재귀가 거듭되면서 수행한 작업들을 메모리 영역에 모두 들고 있어야 해서 오버헤드가 더 심해집니다! 그래서 시간이나 메모리가 더 소요되는 것 같아요
Closed
Woo-Yeol
approved these changes
Jun 19, 2023
Member
Woo-Yeol
left a comment
There was a problem hiding this comment.
전체적인 풀이가 비슷하네요 이번에 재귀로 접근하시는 걸 보고 재귀 복습을 확실히 하신 것 같아 감탄이 나옵니다!! 고생하셨어요!
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.

PR Summary
풀이시간
접근법
회고
ISSUE NUMBER