MCPcopy 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_treeFunction · 0.95
level_orderFunction · 0.95
level_order_actualFunction · 0.95
bfsMethod · 0.95
breadth_first_searchFunction · 0.95
rotateMethod · 0.95
frontMethod · 0.95
traverseMethod · 0.95
breadth_first_searchFunction · 0.95

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected