-
-
# 源码分析
## Python 的deque双端队列
``` Python 中没有queue数据结构,有双端队列 deque ```
### 用list实现简单的队列queue
```python
class Queue:
def __init__(self):
self.queue = []
def enqueue(self,…
-
# Project ideas
Some project ideas, read after the list to find out more about them. If you want to do one of these as your project, leave a comment on this issue and click the checkbox (so that we d…
-
# 用 add first 或 add last 这套新的 API 改写 Deque 的代码
```java=
import java.util.Deque;
import java.util.LinkedList;
public class DoubleQueue {
public static void main(String[] args) {
D…
-
There are N cities numbered from 1 to N.
You are given connections, where each connections[i] = [city1, city2, cost] represents the cost to connect city1 and city2 together. (A connection is bidirec…
-
# [118-Week01] Recap
## 1. Practice
- There's really no shortcut to it, just practice relentlessly by following the 5-step method. Peace out AI...
![AI]( https://i.ytimg.com/vi/K9ZQhyOZCNE/…
-
[Contents]
**1.**
- array
- 1d, 2d, 3d …
- linked list
- single
- double
- circular
- stack
- queue
- deque
- priority queue
**2.**
- 탐색
- 이분탐색
- 순차탐색
…
-
Hello, I am wondering if you would like to think about implementing a parallel prim's algorithm by using a min-heap for the priority queue? I have tried but I failed, do you have any idea?
-
## Motivation
An extension of #87 where other criteria than Least|Most-Recently-Used would be possible for polling order of idle resources (ie. created oldest).
The **Priority Queue** opens up mor…
-
![image](https://user-images.githubusercontent.com/47676141/197886438-2d25cdcd-d1ab-4e48-b4f0-fb939a8f8a78.png)
- [ ] Implement "Term at a a time" algorithm for determining document score Ad.
…