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

Method push

Stack/ImplementQueueUsingStack.py:42–46  ·  view source on GitHub ↗
(self, value)

Source from the content-addressed store, hash-verified

40 self.stack_two = Stack()
41
42 def push(self, value):
43 if self.stack_two.empty():
44 self.stack_two.push(value)
45 else:
46 self.stack_one.push(value)
47
48 def pop(self):
49

Callers 2

popMethod · 0.45

Calls 1

emptyMethod · 0.80

Tested by

no test coverage detected