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
idea : 23 vs 232 = 23232323 vs 232232232232 (늘려서 비교)
heapq
라이브러리를 이용하여 풀었습니다.코딩테스트에서는
PriorityQueue
를 사용하는 것 보다heapq
를 사용하는 것이 성능 측면에서 더 좋다고 합니다.PriorityQueue
가 내부적으로heapq
를 사용하여 구현이 되어있고,PriorityQueue
의 차이점은 멀티스레드 환경에서Thread-Safe
를 보장한다는 것인데 파이썬의 특징 상 큰 의미가 없다고 합니다.ISSUE NUMBER