목록더 맵게 (1)
컴공생의 다이어리
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/dIFCeJ/btrEekk7Q1b/HyPjhAszxEkuTUThrAvq21/img.png)
[프로그래머스] 더 맵게 - 파이썬(Python) import heapq def solution(scoville, K): heapq.heapify(scoville) count = 0 while len(scoville) >= 2 and scoville[0] = K else -1 혹은 import heapq def solution(scoville, K): heapq.heapify(scoville) count = 0 while sco..
Development/Algorithm & Coding Test
2022. 6. 8. 00:01