Update 4-stack/README.md

This commit is contained in:
William Mantly 2024-02-01 15:47:49 +00:00
parent f4034546cc
commit e49b5fa8d1

View File

@ -5,7 +5,7 @@ Wikipedia on [stacks](http://en.wikipedia.org/wiki/Stack_(abstract_data_type)).
Similarly, the Linked List, a stack is an abstract data type. It is LIFO, or Last In First Out. Each node holds data and a pointer to the next node.
###Visualization
### Visualization
|42|
|
@ -21,7 +21,7 @@ The main operations available to the Stack are push and pop.
- Pop should remove the top node and return it.
- Push should add to the top of the stack.
###Methods
### Methods
Create your datatypes and create the following methods:
@ -33,7 +33,7 @@ Create your datatypes and create the following methods:
- empty - Is the stack empty?
###Additional Methods
### Additional Methods
In the wikipedia article, read under the title "Hardware Stacks". Emulating a hardware stack, add the operations it lists to your class. This is open ended and implementation is up to you.