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

Function helper

Stack/ReverseAStackByRecursive.py:15–21  ·  view source on GitHub ↗
(stacks)

Source from the content-addressed store, hash-verified

13 new_stack = Stack()
14
15 def helper(stacks):
16 if stacks.empty():
17 return
18
19 new_stack.push(stacks.pop())
20
21 helper(stacks)
22
23 helper(stacks)
24

Callers 1

reverseStackFunction · 0.70

Calls 3

emptyMethod · 0.80
pushMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected