2.3.1 stacks and queues Flashcards
1
Q
QUEUES
A
Queues is a type of list where data is inserted at one end and retrieved from the other end.
2
Q
FIFO
A
Queues are known as FIFO data structure, first in first out!
3
Q
STACK
A
stack is a list which is limited to only allow data to be inserted and retrieved from the same end.
4
Q
LIFO
A
stacks are known as last in first out!