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 |
Tags
- Nest.js
- Dinosaur
- 자료구조
- game
- AWS
- dfs
- JavaScript
- MongoDB
- nestjs
- Express
- mongoose
- typeORM
- nodejs
- 공룡게임
- GIT
- Sequelize
- MySQL
- 게임
- react
- Python
- Queue
- TypeScript
- flask
- jest
- Bull
- 정렬
- class
- cookie
- OCR
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