From 3367c38faa35d343da04053ca22e09fed9ef7482 Mon Sep 17 00:00:00 2001 From: CyC2018 Date: Sat, 7 Nov 2026 17:10:23 +0800 Subject: [PATCH] =?UTF-8?q?Update=209.=20=E7=94=A8=E4=B8=A4=E4=B8=AA?= =?UTF-8?q?=E6=A0=88=E5=AE=9E=E7=8E=B0=E9=98=9F=E5=88=97.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 图片宽度补上单位。 --- notes/9. 用两个栈实现队列.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notes/9. 用两个栈实现队列.md b/notes/9. 用两个栈实现队列.md index 51472537..bcace466 100644 --- a/notes/9. 用两个栈实现队列.md +++ b/notes/9. 用两个栈实现队列.md @@ -14,7 +14,7 @@ in 栈用来处理入栈(push)操作,out 栈用来处理出栈(pop)操 需要注意的是,只有 out 栈为空时才把 in 栈的元素全部倒进去;out 栈中还有元素时倒入,新元素会压在旧元素上面,先出栈,顺序就乱了。每个元素最多进出 in 栈、out 栈各一次,因此 deleteHead 的均摊时间复杂度为 O(1)。 -

+

```java class CQueue {