Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
reverseStack
Function · 0.70
Calls
3
empty
Method · 0.80
push
Method · 0.45
pop
Method · 0.45
Tested by
no test coverage detected