Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/HuberTRoy/leetCode
/ ReverseAStackByRecursive.py
File
ReverseAStackByRecursive.py
Stack/ReverseAStackByRecursive.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
""
"
2
只能用递归不能用其他数据结构来逆序一个栈。
3
4
可以用另一个新栈的话比较容易。
Callers
nothing calls this directly
Calls
3
Stack
Class · 0.90
reverseStack
Function · 0.85
push
Method · 0.45
Tested by
no test coverage detected