Uh oh!
There was an error while loading. Please reload this page.
This repository was archived by the owner on Mar 18, 2024. It is now read-only.
[2023-08-14] dohyun #110 - #122
Merged
Merged
Conversation
limstonestone
requested review from
Woo-Yeol, ksumini and zsmalla
as code ownersAugust 14, 2023 06:33
Closed
Woo-Yeol
approved these changes
Aug 14, 2023
Member
There was a problem hiding this comment.
오 예외처리를 정리하셔서 이렇게 filter로 걸어주시는게 너무 좋은 것 같습니다.
zsmalla
approved these changes
Aug 14, 2023
zsmalla
left a comment
Contributor
There was a problem hiding this comment.
스택을 검증해주는 메소드 하나 덕분에 코드가 전반적으로 깔끔한 것 같습니다. 주석도 이해하기 쉽게 작성해주셨고, 이해하기 쉬웠던 풀이였습니다. 수고하셨습니다.
Contributor
There was a problem hiding this comment.
스택의 유효성을 검증해주는 함수를 따로 정의하신 것 굉장히 좋은 것 같습니다.
다만 cond2에서 count는 O(N)이 소요되는 연산이므로, 모든 스택 연산이 끝났을 때 스택 리스트에 원소가 남아있다면 애초에 개수가 안맞았던 것 아니었을까? 로 접근해보면 어떨까 싶습니다!
ksumini
approved these changes
Aug 14, 2023
Contributor
There was a problem hiding this comment.
예외처리도 스터디 때 말씀 드렸던 것처럼 count의 시간복잡도는 O(n)
참고 링크: https://stackoverflow.com/questions/44812468/what-is-the-time-complexity-of-python-lists-count-function
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 freeto 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