From 92051fac670c4c1e776d0afad4adadbc9c6dacfd Mon Sep 17 00:00:00 2001 From: Liu Yongliang <41845017+tlylt@users.noreply.github.com> Date: Sun, 13 Aug 2023 13:59:49 +0800 Subject: [PATCH] =?UTF-8?q?Update=200225.=E7=94=A8=E9=98=9F=E5=88=97?= =?UTF-8?q?=E5=AE=9E=E7=8E=B0=E6=A0=88.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- problems/0225.用队列实现栈.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/problems/0225.用队列实现栈.md b/problems/0225.用队列实现栈.md index 13b742f8..3de300c7 100644 --- a/problems/0225.用队列实现栈.md +++ b/problems/0225.用队列实现栈.md @@ -111,7 +111,7 @@ public: } }; ``` -* 时间复杂度: push为O(n),其他为O(1) +* 时间复杂度: pop为O(n),其他为O(1) * 空间复杂度: O(n) ## 优化 @@ -158,7 +158,7 @@ public: } }; ``` -* 时间复杂度: push为O(n),其他为O(1) +* 时间复杂度: pop为O(n),其他为O(1) * 空间复杂度: O(n)