일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- METACLASS
- classproperty
- springboot 3.0.0
- OperationalError
- python all testcode
- github
- S3
- github skyline
- docker
- Django
- 2차 코딩테스트
- Spring
- classmethod
- docker-compose
- 재귀함수가 뭔가요
- depends
- 우아한 테크코스 2차 합격
- AWS
- AWS S3
- 코딩테스트
- MySQL server on 'db' (115)
- 갓재석
- depends_on
- python
- javascript
- 프로그래머스
- TypeError: 'property' object is not iterable
- DB
- EC2
- 우아한테크코스 2차
Archives
목록heap (1)
hanbin.dev
[코딩테스트] 프로그래머스 더 맵게 with Python
문제 풀이 코드 import heapq def solution(scoville, K): answer = 0 heapq.heapify(scoville) #1 while True: answer += 1 heapq.heappush(scoville,heapq.heappop(scoville) + heapq.heappop(scoville) * 2) #2 if scoville[0] >= K: #3 return answer elif len(scoville)
코딩테스트
2021. 5. 12. 13:45