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