Create a class/struct for a node.
Create a class/struct for a list.
Members:
Top - a node that tracks the top of the stack
Count - indicates how many items are on the stack.
Methods:
Push
- Accepts a number and adds to the top of the stack.
Pop
- Returns a number from the top of the stack.
- If the stack is empty, emit an error indicating the stack is empty.
IsEmpty
- Returns a boolean indicating if the stack is empty.

Q&A Education