Challenge 2: Reverse a Stack
Given a stack, reverse the contents of the stack.
Problem Statement
Implement a function that takes a stack, testVariable
, and reverses it. Do not use any other extra stack or data structure.
...
Given a stack, reverse the contents of the stack.
Implement a function that takes a stack, testVariable
, and reverses it. Do not use any other extra stack or data structure.
...