mirror of
https://hub.njuu.cf/TheAlgorithms/Python.git
synced 2023-10-11 13:06:12 +08:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
d5acc58069
commit
9f95fecc89
@ -1,5 +1,6 @@
|
||||
from stack import Stack # Assuming you have a Stack class defined in 'stack.py'
|
||||
|
||||
|
||||
def reverse_stack(stack):
|
||||
"""
|
||||
Reverse the elements of a stack using another stack.
|
||||
@ -33,6 +34,7 @@ def reverse_stack(stack):
|
||||
item = reversed_stack.pop()
|
||||
stack.push(item)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
from doctest import testmod
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user