Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- Python
- class
- Sequelize
- nodejs
- AWS
- MongoDB
- mongoose
- 자료구조
- Express
- react
- Dinosaur
- TypeScript
- GIT
- game
- 게임
- cookie
- OCR
- 공룡게임
- Bull
- JavaScript
- typeORM
- nestjs
- flask
- Nest.js
- 정렬
- MySQL
- dfs
- jest
- Queue
Archives
- Today
- Total
목록priorityqueue (1)
포시코딩
5월5일 - [Python] PriorityQueue(우선순위 큐), heapq
PriorityQueue 사용법 from queue import PriorityQueue pqueue = PriorityQueue() pqueue.put((5, 'Python')) pqueue.put((15, 'Javascript')) pqueue.put((10, 'Java')) arr = [] while not pqueue.empty(): value, data = pqueue.get() arr.append((value, data)) print(arr) # [(5, 'Python'), (10, 'Java'), (15, 'Javascript')] 선언 from queue import PriorityQueue pqueue = PriorityQueue() 데이터 삽입 pqueue.put((1, 'Python'..
TIL
2023. 5. 5. 18:00