Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codemistic/Data-Structures-and-Algorithms
/ __init__
Method
__init__
Python/queue via stack.py:19–21 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
17
18
class
QueueviaStack():
19
def
__init__(self):
20
self.inStack=Stack()
21
self.outStack=Stack()
22
23
def
enqueue(self,item):
24
self.inStacl.push(item)
Callers
nothing calls this directly
Calls
1
Stack
Class · 0.70
Tested by
no test coverage detected