Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/HuberTRoy/leetCode
/ ImplementQueueUsingStack.py
File
ImplementQueueUsingStack.py
Stack/ImplementQueueUsingStack.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
""
"
2
使用栈来实现队列。
3
队列是一个先进先出的数据结构,栈则是一个先进后出的数据结构。
4
Callers
nothing calls this directly
Calls
3
Queue
Class · 0.85
push
Method · 0.45
pop
Method · 0.45
Tested by
no test coverage detected