Skip to content

Commit a12d352

Browse files
committed
📚jvm
1 parent b9ac047 commit a12d352

File tree

5 files changed

+377
-387
lines changed

5 files changed

+377
-387
lines changed
46.5 KB
Loading
Loading

docs/data-structure/Queue.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -270,12 +270,10 @@ public class MyArrayQueue implements MyQueue {
270270

271271
**队头指针( front )**指向链队列的头结点,而**队尾指针( rear )**指向终端结点。非空链队列如下所示。
272272

273-
![非空链队列](https://img-blog.csdn.net/20170802214836654?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvdTAxMjczNjY4NQ==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast)
274-
275-
273+
![](https://tva1.sinaimg.cn/large/007S8ZIlly1gh1bmzvkjnj31860bngmm.jpg)
276274

277275
**队列为空**时,front和rear都指向头结点。
278-
![空链队列](https://img-blog.csdn.net/20170802215015859?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvdTAxMjczNjY4NQ==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast)
276+
<img src="https://tva1.sinaimg.cn/large/007S8ZIlly1gh1bpyg5ebj30e20bp0t0.jpg" alt="空链队列" style="zoom: 50%;" />
279277

280278
```java
281279
public class MyLinkedQueue implements MyQueue {

0 commit comments

Comments
 (0)