Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/TheAlgorithms/Python
/ put
Method
put
data_structures/queues/queue_on_pseudo_stack.py:19–21 ·
view source on GitHub ↗
(self, item: Any)
Source
from the content-addressed store, hash-verified
17
item to enqueue
""
"
18
19
def
put(self, item: Any) -> None:
20
self.stack.append(item)
21
self.length = self.length + 1
22
23
""
"Dequeues {@code item}
24
@requirement: |self.length| > 0
Callers
9
build_tree
Function · 0.95
level_order
Function · 0.95
level_order_actual
Function · 0.95
bfs
Method · 0.95
breadth_first_search
Function · 0.95
rotate
Method · 0.95
front
Method · 0.95
traverse
Method · 0.95
breadth_first_search
Function · 0.95
Calls
1
append
Method · 0.45
Tested by
no test coverage detected