Created by Nathan King
almost 8 years ago
|
||
Question | Answer |
What are stacks/queues | They are lists that store data in a linear ordered fashion. |
Stack | Last in - First Out Data is added to the top of the structure Data is removed from top PUSH is the command to insert POP is the command to lose data |
Queues | Data is added to the end of the structure Data is removed from start of structure Queues are First In First Out PUSH is the command to insert data POP is the command to remove data |
Want to create your own Flashcards for free with GoConqr? Learn more.