Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

232用栈实现队列那题栈对象的Pop方法弹出之前需要判断长度是否为0 #37

Closed
zhoushuguang opened this issue Mar 27, 2019 · 3 comments

Comments

@zhoushuguang
Copy link

与题解有关的 issue 模板

题号

我的疑问


有偿答疑,点击后,扫码付费

@aQuaYi
Copy link
Owner

aQuaYi commented Mar 28, 2019

每个题目的 notes 是很重要的提示。请看第三条:

  • You may assume that all operations are valid (for example, no pop or peek operations will be called on an empty queue)

@aQuaYi aQuaYi closed this as completed Mar 28, 2019
@aQuaYi
Copy link
Owner

aQuaYi commented Mar 28, 2019

我利用 container/list.List 重新实现了代码。
当时不知道有 list 这么好的数据结构。

@aQuaYi
Copy link
Owner

aQuaYi commented Mar 28, 2019

正好测试一下 commit 里面带 issue 号。

@aQuaYi aQuaYi reopened this Mar 28, 2019
@aQuaYi aQuaYi closed this as completed in 7fa9802 Mar 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants