일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 재귀함수가 뭔가요
- classmethod
- TypeError: 'property' object is not iterable
- docker-compose
- python
- javascript
- AWS S3
- AWS
- 코딩테스트
- S3
- EC2
- depends
- Spring
- MySQL server on 'db' (115)
- 프로그래머스
- 갓재석
- OperationalError
- classproperty
- github skyline
- python all testcode
- 2차 코딩테스트
- 우아한 테크코스 2차 합격
- 우아한테크코스 2차
- depends_on
- DB
- Django
- docker
- github
- springboot 3.0.0
- METACLASS
Archives
목록더 맵게 (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