MCPcopy
hub / github.com/HuberTRoy/leetCode / __init__

Method __init__

Stack/ImplementQueueUsingStack.py:38–40  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

36class Queue:
37
38 def __init__(self):
39 self.stack_one = Stack()
40 self.stack_two = Stack()
41
42 def push(self, value):
43 if self.stack_two.empty():

Callers

nothing calls this directly

Calls 1

StackClass · 0.90

Tested by

no test coverage detected