Stacks
Introduction to Stacks
Introduction to Stacks
Stack Practice #1: Reversing an Array
Stack Practice #1: Reversing an Array
Create a static method that takes an array of integers as a parameter. The method should reverse the order of elements in the array. It should not return anything. In your test code, create the array and print it's contents on a single line. Then call the reverse method and print it again.
Stack Practice #2: Weird Baseball
Stack Practice #2: Weird Baseball
Use a switch statement and a stack to solve this problem in LeetCode.