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-09-06] sumin #182 - #197
Merged
Merged
Conversation
Closed
Woo-Yeol
approved these changes
Sep 6, 2023
Woo-Yeol
left a comment
Member
There was a problem hiding this comment.
전체적으로 깔끔한 풀이를 볼 수 있어서 좋았습니다! 고생하셨습니다 수민님! 추가적으로 datetime 모듈을 사용해서 시간 차이를 구하는 방법도 있으니 확인해보셔도 좋을 것 같아요!
zsmalla
approved these changes
Sep 6, 2023
zsmalla
left a comment
Contributor
There was a problem hiding this comment.
{차량번호 : 입차내역리스트}를 활용하신 점이 너무 좋았던 풀이였습니다. 훨씬 직관적으로 이해가 가능했던 것 같아요. 고생하셨습니다 수민님!
limstonestone
approved these changes
Sep 6, 2023
limstonestone
left a comment
Contributor
There was a problem hiding this comment.
입출차 시간을 pop() 연산으로 처리한 것 빼고는 제 풀이와 거의 똑같은것 같아요!
변수를 따로 선언해서 while 문 내 조건과 pop 연산으로 해결하니 조금 더 직관적인 것 같다는 느낌이 듭니다!
감사합니다 ~~!
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
풀이시간: 20분
<input>
fees: 주차 요금 (fees의 길이 = 4)
records: 자동차의 입/출차 내역 (1 ≤ records의 길이 ≤ 1,000)
<solution>
<시간 복잡도>
O(NlogN): 전체 코드 중 정렬이 가장 많은 시간 소요됨